summaryrefslogtreecommitdiff
path: root/Zend/zend_operators.c
Commit message (Collapse)AuthorAgeFilesLines
* Added folder markXinchen Hui2014-05-241-1/+2
|
* Fixed memory leak in pow operatorBob Weinand2014-02-061-2/+4
|
* add T_POW (**) operatordatibbaw2014-02-061-0/+81
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* Bump yearXinchen Hui2014-01-031-1/+1
|
* Provide more macros for handling of interned stringsNikita Popov2013-09-131-29/+15
| | | | | | | | | | | | | * str_erealloc behaves like erealloc for normal strings, but will use emalloc+memcpy for interned strings. * str_estrndup behaves like estrndup for normal strings, but will not copy interned strings. * str_strndup behaves like zend_strndup for normal strings, but will not copy interned strings. * str_efree_rel behaves like efree_rel for normal strings, but will not free interned strings. * str_hash will return INTERNED_HASH for interned strings and compute it using zend_hash_func for normal strings.
* Merge branch 'PHP-5.5'Xinchen Hui2013-08-271-2/+2
|\
| * Fixed compiler warningsXinchen Hui2013-08-271-2/+2
| | | | | | | | | | | | | | | | warning: 'local_dval' may be used uninitialized in this function [-Wmaybe-uninitialized] warning: 'dval2' may be used uninitialized in this function [-Wmaybe-uninitialized]
* | Implement internal operator overloadingNikita Popov2013-06-171-55/+152
|/ | | | As pre RFC https://wiki.php.net/rfc/operator_overloading_gmp
* Merge branch 'pull-request/341'Stanislav Malyshev2013-06-101-1/+1
| | | | | * pull-request/341: (23 commits) typofixes
* Fix compile failure introduced by the fix for bug #46408.Adam Harvey2013-01-151-1/+1
|
* Bug #46408: Fix double formatting for PostgreSQL bound parametersLars Strojny2013-01-141-0/+18
|
* Happy New YearXinchen Hui2013-01-011-1/+1
|
* Merge branch 'PHP-5.4'Xinchen Hui2012-08-311-0/+3
|\
| * Merge branch 'PHP-5.3' into PHP-5.4Xinchen Hui2012-08-311-0/+3
| |\
| | * Fixed bug #62976 (Notice: could not be converted to int when comparing some ↵Xinchen Hui2012-08-311-0/+3
| | | | | | | | | | | | builtin classes)
* | | improve code in zend_operatorsStanislav Malyshev2012-07-141-8/+8
| | |
* | | fix for bug#18556 - use simple tolower() function for internal thingsStanislav Malyshev2012-07-141-6/+86
|/ /
* | Merge branch 'PHP-5.3' into PHP-5.4Felipe Pena2012-06-031-3/+4
|\ \ | |/ | | | | | | | | | | | | * PHP-5.3: - Optimize comparison between same HashTable pointer - Fixed bug #62205 (php-fpm segfaults (null passed to strstr)) - fix missing include for unix sockets - Comment unused function to avoid warnings
| * - Optimize comparison between same HashTable pointerFelipe Pena2012-06-031-3/+4
| |
| * - Year++Felipe Pena2012-01-011-1/+1
| |
| * - Year++Felipe Pena2011-01-011-1/+1
| |
| * - Fixed bug #52193 (converting closure to array yields empty array)Felipe Pena2010-06-261-1/+9
| |
| * Fixed a possible information leak because of interruption of XOR operatorDmitry Stogov2010-05-121-7/+21
| |
* | Fixed bug #62097Gustavo André dos Santos Lopes2012-05-231-0/+6
| | | | | | | | | | | | This fixes the fix for bug #54547 in 32-bit machines by accepting float comparisons in 32-bit machines as long as the integer is not larger than the mantissa.
* | fix bug #54547Stanislav Malyshev2012-05-131-2/+17
| |
* | - Year++Felipe Pena2012-01-011-1/+1
| |
* | - Fixed ZTS buildFelipe Pena2011-08-301-2/+2
| |
* | - Zend engine part for bug #55158: Add SORT_NATURAL type to array_multisortDerick Rethans2011-08-291-2/+18
| | | | | | | | | | (patch by Arpad Ray).
* | MFH: Arithmetic speedup. Inlined most probable code-paths for arithmetic ↵Dmitry Stogov2011-05-311-3/+0
| | | | | | | | operations directly into executor.
* | - Year++Felipe Pena2011-01-011-1/+1
| |
* | Fix a bug where two doubles are equal but the maths operation makes it ↵Scott MacVicar2010-08-221-2/+6
| | | | | | | | | | | | | | | | | | | | | | | | appear false. Best example with INF where equals and identical produce different results. <?php var_dump(INF==INF); var_dump(INF===INF);
* | - Fixed bug #52193 (converting closure to array yields empty array)Felipe Pena2010-06-261-1/+9
| |
* | Fixed a possible information leak because of interruption of XOR operatorDmitry Stogov2010-05-121-7/+21
| |
* | Added concept of interned strings. All strings constants known at compile ↵Dmitry Stogov2010-04-201-21/+51
|/ | | | time are allocated in a single copy and never changed.
* sed -i "s#1998-2009#1998-2010#g" **/*.c **/*.h **/*.phpSebastian Bergmann2010-01-051-1/+1
|
* Extend the previously added large string concatenation validationIlia Alshanetsky2009-11-231-1/+1
|
* Fixed bug #50207 (segmentation fault when concatenating very large stringsIlia Alshanetsky2009-11-191-0/+6
| | | | | on 64bit linux).
* MFH:Matt Wilmas2009-06-041-3/+3
| | | | | | | | | | | | | | | | | | Restored double->long conversion behavior to that of PHP 5.2 (on most platforms) and prior: * Out-of-range numbers overflow/preserve least significant bits (no LONG_MAX/MIN limit) * See bug #42868 (presumably-rare platform with different results in 5.2) * On 32-bit platforms with 64-bit long type, a zend_long64 cast has been added, otherwise it's the same as 5.2 * Use this conversion method everywhere instead of some plain (long) casts Added 'L' parameter parsing specifier to ensure a LONG_MAX/MIN limit: * Essentially what 5.3's new conversion was doing in most cases * Functions with "limit" or "length" type params could be updated to use this, and prevent confusing overflow behavior with huge numbers (*also* in 5.2) - See bug #47854, for example; or even #42868 again # Test updates coming
* MFH:- Removed unnecessary TSRMLS_FETCH() callsJani Taskinen2009-05-111-13/+4
|
* MFH: cs + wsJani Taskinen2009-05-111-116/+115
|
* MFH: syncJani Taskinen2009-05-101-122/+148
|
* sync with HEADJani Taskinen2009-05-101-0/+5
|
* optimizationDmitry Stogov2009-03-181-4/+3
|
* Fixed floating point mathematic speed degradation (Christian)Dmitry Stogov2009-03-181-39/+0
|
* MFH: Overflow commentMatt Wilmas2009-02-171-0/+1
|
* MFH: Fixed bug #47422 (modulus operator returns incorrect results on 64 bit ↵Matt Wilmas2009-02-171-1/+1
| | | | linux)
* MFH:Felipe Pena2009-01-051-34/+0
| | | | | | - Fixed bug #46701 (Creating associative array with long values in the key fails on 32bit linux) Patch by Shire
* MFH: Bump copyright year, 3 of 3.Sebastian Bergmann2008-12-311-1/+1
|
* - MFH: Changed floating point behaviour to consistently use double precisionChristian Seiler2008-12-021-0/+39
| | | | | on all platforms and with all compilers.
* - MFH: Removed some TSRMLS_FETCH()sFelipe Pena2008-08-151-7/+7
|