summaryrefslogtreecommitdiff
path: root/Zend/zend_operators.c
Commit message (Collapse)AuthorAgeFilesLines
...
* 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
|
* Merged zend_array and HashTable into the single data structure.Dmitry Stogov2015-02-131-2/+1
| | | | | Now each HashTable is also zend_array, so it's refcounted and may be a subject for Copy on Write zend_array_dup() was changed to allocate and return HashTable, instead of taking preallocated HashTable as argument.
* Remove support for hex number from is_numeric_stringNikita Popov2015-01-281-35/+16
|
* Fix resource leak when casting to stringNikita Popov2015-01-241-8/+6
|
* bump yearXinchen Hui2015-01-151-1/+1
|
* Fixed typoDmitry Stogov2015-01-141-3/+3
|
* Improve "instanceof". Interfaces of the left operand should be checked only ↵Dmitry Stogov2015-01-141-9/+47
| | | | if the right operand is interafce itself.
* Add hintingXinchen Hui2015-01-121-1/+1
|
* Faster strrpos implementationXinchen Hui2015-01-121-13/+55
|
* Faster zend_memnstr for long textXinchen Hui2015-01-121-2/+53
|
* trailing whitespace removalStanislav Malyshev2015-01-101-14/+14
|
* Fix the same leak with %=Nikita Popov2015-01-071-3/+4
|
* Fix leak for compound shift self-assign error casesNikita Popov2015-01-071-6/+8
|
* Added new API function 'zend_string* zend_string_tolower(zend_string*)'.Dmitry Stogov2014-12-241-0/+28
| | | | It simplifies code and avoids unnecessary allocation and copying if string is already in lower case.
* Please becareful with the tailed space after slashXinchen Hui2014-12-221-2/+2
|
* share that hunk of codeAndrea Faulds2014-12-231-91/+36
|
* Micro optimaztion (yeah, I know compiler supposed to do that)Xinchen Hui2014-12-221-14/+14
|
* Micro optimizationXinchen Hui2014-12-211-15/+8
|
* Micro optimizationsXinchen Hui2014-12-211-18/+17
|
* Use "float" and "integer" in typehint and zpp errorsAndrea Faulds2014-12-211-1/+1
|
* Merge remote-tracking branch 'origin/master' into native-tlsAnatol Belski2014-12-141-0/+18
|\ | | | | | | | | | | | | | | | | | | | | | | | | * origin/master: Fix bug #67106 split main fpm config split fpm config to two parts. PR#903 fix typo Fix undefined behaviour in strnatcmp Fix undefined behaviour in strnatcmp Fixed memory leak introduced by 73458e8f update NEWS move the test to the right place Fixed bug #68545 NULL pointer dereference in unserialize.c
| * Fixed memory leak introduced by 73458e8fAndrea Faulds2014-12-131-0/+18
| |
* | first shot remove TSRMLS_* thingsAnatol Belski2014-12-131-133/+119
|/
* Removed unused variablesDmitry Stogov2014-12-121-3/+0
|
* Replaced zendi_convert_to_long() with _zval_get_long_func()Dmitry Stogov2014-12-111-105/+96
|
* Moved zend_is_true() from zend_execute.h/zend_execute_API.c into ↵Dmitry Stogov2014-12-111-61/+33
| | | | | | | zend_operators.h/zend_operators.c. Splited the most expensive part of inline i_zend_is_true() into a separate zend_object_is_true(). Replaced zendi_convert_to_long() with cals to zend_is_true().
* Move checks for references into slow paths of operator functions. Remove ↵Dmitry Stogov2014-12-061-57/+175
| | | | duplicate opcode handlers.
* fix datatype mismatchesAnatol Belski2014-10-271-2/+2
|
* Useless assignmentXinchen Hui2014-10-221-4/+3
|
* Moved proxy object support in ASSIGN_ADD (and family) from VM to slow paths ↵Dmitry Stogov2014-10-211-68/+66
| | | | of corresponding operators
* fix C89 compatAnatol Belski2014-09-251-4/+8
|
* fix indentationkrakjoe2014-09-251-1/+1
|
* fix zts buildkrakjoe2014-09-251-0/+2
|
* Optimized (PRE|POST)_(INC|DEC) handlers. Moved proxy object handling into ↵Dmitry Stogov2014-09-251-2/+20
| | | | helper function.
* It is not likely a stringXinchen Hui2014-09-231-2/+2
|
* Merge branch 'master' into integer_semanticsAndrea Faulds2014-09-211-4/+140
|\
| * Make number printing functions less genericNikita Popov2014-09-191-2/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Now that zend_ulong is 64bit on 64bit platforms, it should be sufficient to always use it, rather than supporting multiple types. API changes: * _zend_print_unsigned_to_buf and _zend_print_signed_to_buf no longer exist. * smart_str(ing)_print_long and smart_str(ing)_print_unsigned no longer exist. * Instead of all these, zend_print_ulong_to_buf and zend_print_long_to_buf should be used. * smart_str_append_generic_ex no longer exists. * smart_str(ing)_append_off_t(_ex) no longer exists, use smart_str(ing)_append_long(_ex) instead.
| * Fixed useless or duplicated IS_INTERNED() checksDmitry Stogov2014-09-191-2/+2
| |