1
0
mirror of https://github.com/php/php-src.git synced 2026-04-05 23:23:03 +02:00
Files
archived-php-src/ext/gmp/tests
datibbaw aff56f3c45 add T_POW (**) operator
Fixed recognition of the operator

Added opcode, still doing multiply instead of pow()

opcode now always returns int(42)

The right answer, but always a float

Yanked code from pow() implementation.

Should not handle negative long as exponent ourselves

Added test cases from pow()

Moved precedence higher than '~'

Added GMP operator overloading

Added ZEND_ASSIGN_POW (**=) operator.

Added pow() as a language construct.

Adjusted test cases for changed precedence.

Reduced pow() to shell function around ZEND_API pow_function()

Reduced test case to only contain edge cases
Added overloading test case

Moved unary minus above T_POW

Revert "Added pow() as a language construct."

Bad bad bad idea.

This reverts commit f60b98cf7a8371233d800a6faa286ddba4432d02.

Reverted unary minus behaviour due to previous revert.
Convert arrays to int(0)
Exponent with array as a base becomes int(0)

Rebase against master

Fixed tokenizer test case
2014-02-06 14:41:21 +01:00
..
2007-05-27 15:12:33 +00:00
2013-06-17 17:59:12 +02:00
2013-06-17 17:59:12 +02:00
2013-06-17 17:59:12 +02:00
2013-06-17 17:59:12 +02:00
2007-12-27 16:05:00 +00:00
2013-06-17 17:59:12 +02:00
2007-11-01 09:25:11 +00:00
2013-06-17 17:59:12 +02:00
2007-11-01 00:46:13 +00:00
2007-11-01 00:46:13 +00:00
2007-11-01 00:46:13 +00:00
2007-11-01 00:46:13 +00:00
2007-11-01 09:25:11 +00:00
2012-08-23 17:09:45 +02:00
2007-11-01 00:46:13 +00:00
2007-11-01 09:25:11 +00:00
2007-11-01 09:25:11 +00:00
2007-12-27 16:05:00 +00:00
2007-11-01 00:46:13 +00:00
2013-06-17 17:59:12 +02:00
2013-06-17 17:59:12 +02:00
2007-11-01 00:46:13 +00:00
2007-11-01 00:46:13 +00:00
2007-11-01 00:46:13 +00:00
2007-11-01 00:46:13 +00:00
2007-11-01 18:43:34 +00:00
2007-05-07 18:03:01 +00:00
2013-06-17 17:59:12 +02:00
2013-06-17 17:59:12 +02:00
2013-06-17 17:59:12 +02:00
2014-02-06 14:41:21 +01:00