summaryrefslogtreecommitdiff
path: root/Zend/zend_operators.c
Commit message (Collapse)AuthorAgeFilesLines
* 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
|
* - MFH: Constness (Added const qualifier to several function parameters)Felipe Pena2008-08-121-4/+4
|
* MFH: fix bug #45712 ($something == NaN returns true with 5.3, false with 5.2.*)Antony Dovgal2008-08-071-3/+6
|
* - MFH: Constify read-only argumentsMoriyoshi Koizumi2008-07-241-4/+4
|
* MFH: Fixed overflow crash (at least on Windows) in div_function with ↵Matt Wilmas2008-05-291-0/+4
| | | | LONG_MIN / -1
* MFH: add zend_atol()Antony Dovgal2008-03-191-0/+27
|
* MFH: Dropped zend.ze1_compatibility_modeFelipe Pena2008-03-181-34/+4
| | | | | [DOC]
* Added garbage collectorDmitry Stogov2008-01-221-0/+1
|
* Yet another comparison optimisation for usual casesDmitry Stogov2008-01-211-48/+51
|
* MFH: Bump copyright year, 2 of 2.Sebastian Bergmann2007-12-311-1/+1
|
* Additional fix for bug #42868Dmitry Stogov2007-12-241-26/+28
|
* Fixed bug #42868 (Floats cast to integer produce unpredicatable results). ↵Dmitry Stogov2007-12-171-10/+27
| | | | (Zoe Slattery)
* MFH: math and comparison optimization + use macrosesDmitry Stogov2007-11-201-629/+612
|
* optimizationDmitry Stogov2007-10-291-10/+8
|
* MFH: Added macros for managing zval refcounts and is_ref statusesYiduo (David) Wang2007-10-071-1/+1
|
* MFH: Fixed compiler warningsJani Taskinen2007-07-211-1/+1
|
* MFH: minor optimization - make sure the objects are not the same instance ↵Antony Dovgal2007-06-061-0/+5
| | | | before we start comparing their properties
* WIN64 supportDmitry Stogov2007-04-231-2/+10
|
* - Avoid sprintf, even when checked copy'n'paste or changes lead to errorsMarcus Boerger2007-02-241-12/+6
|
* MFH: Bump year.Sebastian Bergmann2007-01-011-1/+1
|
* Simplify & optimize codeIlia Alshanetsky2006-12-301-4/+8
| | | | | # Patch by Matt Wilmas
* is_numeric_string() optimizationIlia Alshanetsky2006-12-261-23/+21
| | | | | # Original Patch by Matt Wilmas
* Fixed possible memory leakIlia Alshanetsky2006-12-211-0/+2
|
* Fixed typoIlia Alshanetsky2006-12-111-1/+1
|
* Removed bool<>long optimization as it causes issues with strict type checksIlia Alshanetsky2006-12-111-1/+1
|
* Minor optimization (2-3%) from Brian ShireIlia Alshanetsky2006-12-111-7/+10
|
* Improve tolower()-related functions on Windows and VC2005 by caching locale ↵Stanislav Malyshev2006-12-041-6/+22
| | | | | | | | | and using tolower_l function. # Gives 10-18% speedup on bench.php # Does not change behaviour for non-windows
* fix leak appearing when converting object to NULLAntony Dovgal2006-11-151-0/+1
| | | | | add test
* MFH: throw a warning when doing modulus by 0 (fr #39027)Antony Dovgal2006-10-031-0/+1
|
* MFH: use if() instead of ?:Antony Dovgal2006-09-271-1/+6
|
* New memory managerDmitry Stogov2006-07-181-1/+0
|
* fix logicAntony Dovgal2006-07-181-1/+1
|
* MFH: fix DVAL_TO_LVAL() on AIX with old gccAntony Dovgal2006-07-181-1/+1
|
* - MFH Fix issue with comparing objects with objectsMarcus Boerger2006-07-091-10/+14
|
* - MFH:Marcus Boerger2006-07-091-44/+41
| | | | | | . Fix comparision edgecases involving objects (Tony, Marcus) . Use ZVAL_LONG() where appropriate
* Restore ZE1 compatibility mode (Zend Engine part - the modules patchesZeev Suraski2006-06-051-3/+33
| | | | | will follow later today)
* fix error messages when converting objects to other typesAntony Dovgal2006-05-251-1/+2
| | | | | | add new function MFB will follow soon
* - MFH as discussedMarcus Boerger2006-05-091-41/+23
| | | | | | | | | | | | | | | | | | | | | . zend_exception_get_default() -> zend_exception_get_default(TSRMLS_D) . zend_get_error_exception() -> zend_get_error_exception(TSRMLS_D) . added E_RECOVERABLE_ERROR . added ZEND_TOSTRING_FUNC_NAME . added __tostring function cache to zend_class_entry . added ZEND_NAMED_ME . modified ZEND_ME_MAPPING to support method flags . added ZEND_MN . method entries now use prefix "zim_" instead of "zif_" . drop EG(ze1_compatibility_mode) . changed cast handler, now without (int should_free): typedef int (*zend_object_cast_t)(zval *readobj, zval *retval, int type TSRMLS_DC); . changed get_iterator, now receives whether value is by ref: zend_object_iterator *(*get_iterator)(zend_class_entry *ce, zval *object, int by_ref TSRMLS_DC); . added zend_objects_store_add_ref_by_handle . added zend_objects_store_del_ref_by_handle . convert_to_explicit_type(pzv, type)