summaryrefslogtreecommitdiff
path: root/Zend/zend_operators.c
Commit message (Collapse)AuthorAgeFilesLines
* Double declarationXinchen Hui2015-10-121-1/+0
|
* Restored the original (php-5) behavior of convert_to_cstring(). It was ↵Dmitry Stogov2015-10-071-1/+10
| | | | broken in php7 by mistake and caused problems in ext/pgsql/tests/bug46408.phpt.
* Revert "Merge branch 'array_keys_strict_refs' of ↵Dmitry Stogov2015-10-061-13/+41
| | | | | | https://github.com/tony2001/php-src" This reverts commit a6be0f3fd6cdd59ac00ecd76630c6c04fee03417.
* Merge branch 'array_keys_strict_refs' of https://github.com/tony2001/php-srcBob Weinand2015-10-051-41/+13
|
* Added folder marksXinchen Hui2015-09-101-1/+2
|
* Change array sorting implementation to avoid two level callbacks system.Dmitry Stogov2015-09-101-39/+26
| | | | Simplify zval comparion API.
* Better array_compare improvementDmitry Stogov2015-09-091-3/+23
|
* Add myself into list of authors of the most refactored files.Dmitry Stogov2015-08-311-0/+1
|
* Avoid array duplicationDmitry Stogov2015-08-251-4/+6
|
* Fixed signed/unsigned warnings in wddxNikita Popov2015-07-171-2/+2
| | | | Also added extra const annotation to zend_memnstr.
* Fixed bug #70057 (Build failure on 32-bit Mac OS X 10.6.8: recursive inlining)Xinchen Hui2015-07-131-8/+2
|
* Use NULL where possible for exception classAaron Piotrowski2015-07-071-7/+7
| | | | Matches usage of zend_throw_exception()/zend_throw_exception_ex().
* bring back the division by zero warningAnatol Belski2015-07-051-4/+20
|
* Remove need to pass error levelAaron Piotrowski2015-07-031-7/+7
|
* Enable throwing custom exceptions from errorsAaron Piotrowski2015-07-031-7/+7
|
* Introduce ArithmeticErrorBob Weinand2015-07-021-3/+3
|
* Same hereXinchen Hui2015-07-021-1/+5
|
* Use one_char_stringXinchen Hui2015-07-021-2/+6
|
* Use one_char_stringXinchen Hui2015-07-021-1/+5
|
* Use DivisionByZeroError instead of exception for %/intdiv()Bob Weinand2015-07-021-1/+1
|
* Remove warning upon division by zeroBob Weinand2015-07-021-20/+4
|
* Cleanup (avoid reallocatios and side effects in php_strip_tags)Dmitry Stogov2015-07-011-0/+28
|
* Use ZSTR_ API to access zend_string elements (this is just renaming without ↵Dmitry Stogov2015-06-301-34/+34
| | | | semantick changes).
* Improved zend_string API (Francois Laupretre)Dmitry Stogov2015-06-291-2/+2
| | | | | | | | | | | | | | | | | | | | Squashed commit of the following: commit d96eab8d79b75ac83d49d49ae4665f948d15a804 Author: Francois Laupretre <francois@tekwire.net> Date: Fri Jun 26 01:23:31 2015 +0200 Use the new 'ZSTR' macros in the rest of the code. Does not change anything to the generated code (thanks to compat macros) but cleaner. commit b3526439104ac7a89a8e0c79dbebf33b22bd01b8 Author: Francois Laupretre <francois@tekwire.net> Date: Thu Jun 25 13:45:06 2015 +0200 Improve zend_string API Add missing methods
* Reverted wrong fb08798c9f0ea820d567668d0cea4833dc61dd8eDmitry Stogov2015-06-291-33/+21
|
* Fix bug #69957 (Different ways of handling div/mod by zero)Bob Weinand2015-06-281-21/+33
|
* Drop duplicate object-to-type noticesNikita Popov2015-06-221-10/+2
| | | | | We already generate a recoverable fatal for these earlier, no need to throw an additional notice.
* Fixed crash in Zend/tests/bug69891.phpt on x86 (32-bit).Dmitry Stogov2015-06-221-1/+13
| | | | | compare_function() now has to be compatible with binary_op_type (use fastcall convention). Introduced new zval_compare_function() to be used as zval comparison callback instead of compare_function().
* Use COW to prevent unnecessary duplication of dynamic propertyes of stdClass ↵Dmitry Stogov2015-06-171-3/+18
| | | | (and other classes without predefined properties).
* Support references in convert_to_*Nikita Popov2015-06-161-8/+36
| | | | | | | | | | | conver_to_* functions now accept REFERENCE values, which will be unwrapped before performing the usual conversion. This is consistent with convert_scalar_to_number and matches the expected behavior in a couple random use-sites I checked. Also includes a couple fixes/cleanups elsewhere and two tests for cases that previously didn't work (though the reference issue existed all over the place).
* Fix references handling in convert_scalar_to_numberNikita Popov2015-06-161-1/+1
|
* Make convert_to_* safe with rc>1Nikita Popov2015-06-111-14/+10
| | | | | | | | | | | | | This only involves switching zval_dtor to zval_ptr_dtor for arrays and making the convert_to_object for arrays a bit more generic. All the other changes outside zend_operators.c just make use of this new ability (use COPY instead of DUP). What's still missing: Proper references handling. I've seen many convert_to* calls that will break when a reference is used. Also fixes bug #69788.
* fix bitwise object operationsBob Weinand2015-06-041-2/+2
|
* Use CG(one_char_string) if possible in bitwise string operationsBob Weinand2015-06-031-8/+44
| | | | emalloc() is not cheap... Also, a good part of bitwise string ops out there are on single bytes.
* Inline IS_LONG value calculation and avoid strtol() call.Dmitry Stogov2015-05-051-2/+11
|
* Improve fast_is_[not_]identical() functions to teturn value instead of ↵Dmitry Stogov2015-04-291-33/+20
| | | | | | takeing additional arguments. Pair INSTANCEOF with the following JMPZ/JMPNZ.
* Undef results for new arithmetic exceptionsNikita Popov2015-04-061-0/+3
| | | | | For the compound assing case (e.g. $a <<= $b) the result is going to be dtored, so we have to set *some* value.
* 0.0 / 0.0 = NaNDmitry Stogov2015-04-061-23/+1
|
* fix buildAnatol Belski2015-04-061-1/+1
|
* Fixed weird operators behavior. Division by zero now emits warning and ↵Dmitry Stogov2015-04-061-15/+41
| | | | returns +/-INF, modulo by zero and intdid() throws an exception, shifts by negative offset throw exceptions. Compile-time evaluation of division by zero is disabled.
* Fixed performance degradation introduced with lateast EnfineException ↵Dmitry Stogov2015-04-021-1/+1
| | | | | | related changes. Restore original errors order in executor.
* Convert fatal errors into EngineExceptionsDmitry Stogov2015-04-011-1/+1
|
* Convert fatal errors into EngineExceptionsDmitry Stogov2015-04-011-1/+3
|
* Convert "Unsupported operands" fatal error into EngineException (exceptions ↵Dmitry Stogov2015-03-311-6/+6
| | | | can't be thrown at compile-time yet, so unsuported operands in constant expressions are still lead to fatal error).
* Removed unused functionsDmitry Stogov2015-03-241-27/+0
|
* Optimize zend_string_realloc() add more specialized versions ↵Dmitry Stogov2015-03-201-3/+3
| | | | zend_string_extend() and zend_string_truncate()
* Embed "fast" operator functions (add, sub, increment, etc) into executor ↵Dmitry Stogov2015-03-171-15/+4
| | | | with additional optimizations
* Fixed inconsistencyDmitry Stogov2015-03-141-1/+1
|
* Use fastcall calling convention for most critical ZE subsystems.Dmitry Stogov2015-03-131-74/+74
|
* Don't inline slow pathDmitry Stogov2015-02-261-0/+32
|