summaryrefslogtreecommitdiff
path: root/Zend/zend_API.c
Commit message (Collapse)AuthorAgeFilesLines
* MFH:Matt Wilmas2009-06-041-2/+22
| | | | | | | | | | | | | | | | | | 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
* Bug #47880 (crashes in call_user_func_array())Dmitry Stogov2009-04-061-6/+0
|
* Fixed bug #47851 (is_callable throws fatal error)Dmitry Stogov2009-04-021-0/+6
|
* Fixed double efree()Dmitry Stogov2009-03-241-1/+0
|
* Fixed __call() to be invoked on private/protected method access through ↵Dmitry Stogov2009-01-141-13/+38
| | | | callbacks
* MFH: Bump copyright year, 3 of 3.Sebastian Bergmann2008-12-311-1/+1
|
* Fixed bug #46409 (__invoke method called outside of object context when ↵Dmitry Stogov2008-11-271-30/+30
| | | | using array_map)
* cleanupStanislav Malyshev2008-11-251-5/+3
|
* add object-compatible array modesStanislav Malyshev2008-11-241-5/+13
|
* - Next step in namespaces, using / as namespace separator.Marcus Boerger2008-11-041-9/+7
|
* Fixed bug #46246 (difference between call_user_func(array($this, $method)) ↵Dmitry Stogov2008-10-101-4/+17
| | | | and $this->$method())
* MFH: fix zend_register_functions() not displaying duplicate functions ↵Antony Dovgal2008-08-221-1/+5
| | | | (reported by Gopal)
* MFH: Handlerify get_closureEtienne Kneuss2008-08-141-1/+1
|
* - Fix buildFelipe Pena2008-08-131-3/+3
|
* - MFH: Constness (Added const qualifier to several function parameters)Felipe Pena2008-08-121-33/+35
|
* - MFH Fix memleak with new error handling stack'ingMarcus Boerger2008-08-111-8/+18
|
* - MFH error handling, now with save, replace, restoreMarcus Boerger2008-08-081-0/+31
|
* Fixed bug #45744 (Case sensitive callback behaviour)Dmitry Stogov2008-08-071-2/+3
|
* - MFH: Added parameter TSRMLS_DC in zend_is_callable()Felipe Pena2008-08-021-3/+1
|
* - MFH: Removed unnecessary TSRMLS_FETCH()Felipe Pena2008-08-021-1/+0
|
* Added checks for destroied objectsDmitry Stogov2008-07-261-0/+14
|
* Fixed is_callable/call_user_func mess that had done different things for ↵Dmitry Stogov2008-07-261-49/+113
| | | | very similar arguments e.g. array("A","B") and "A::B"
* - MFH: Added TSRMLS_DC to apply_func_args_t and zend_hash_apply_with_arguments.Felipe Pena2008-07-241-2/+2
|
* LSB parent/self forwardingDmitry Stogov2008-07-241-124/+132
|
* Fixed is_callable() to support closures and return appropriate function nameDmitry Stogov2008-07-141-2/+6
|
* Added support for lambda functions and closuresDmitry Stogov2008-07-141-0/+11
|
* - Fixed bug #45186 (__call depends on __callstatic in class scope)Felipe Pena2008-06-051-7/+20
|
* MFH: Add array_init_size() and use it where array size is known at ↵Matt Wilmas2008-05-271-2/+2
| | | | initialization
* Added API to use namesapces in internal extensionsDmitry Stogov2008-05-121-0/+14
|
* - MFH: Fixed detection of invalid class nameFelipe Pena2008-05-081-1/+1
|
* Support for old-style constructors in namespacesDmitry Stogov2008-05-051-1/+7
|
* Optimized detection of "__call" and "__callstatic" methods.Dmitry Stogov2008-03-251-17/+17
|
* MFH: Dropped zend.ze1_compatibility_modeFelipe Pena2008-03-181-28/+0
| | | | | [DOC]
* fix segfault when trying to clone uncloneable object because of ↵Antony Dovgal2008-03-061-0/+6
| | | | zend.ze1_compatibility_mode which we should have got rid of years ago
* MFH: Fugbix typo.Sebastian Bergmann2008-02-191-1/+1
|
* - MFH Windows build fixMarcus Boerger2008-02-091-1/+2
|
* - MFH SimplifyMarcus Boerger2008-02-071-3/+1
|
* - MFH Fix missing check and testsMarcus Boerger2008-02-061-1/+3
|
* - MFH Fix cross class tree reference issues with callbacks (colder,helly)Marcus Boerger2008-02-051-2/+5
|
* MFH: fix leak appearing when calling non-static protected or private methods ↵Antony Dovgal2008-02-021-2/+16
| | | | as static
* - MFH Add comment that explains why we need E_ERROR in those casesMarcus Boerger2008-02-021-0/+1
|
* - Fix remaining issue (should be last one)Marcus Boerger2008-02-021-0/+1
|
* - Drop useless TODO, this would need to be fixed in a generic wayMarcus Boerger2008-02-021-1/+0
|
* - Fix flag handling in message generationMarcus Boerger2008-02-021-4/+13
|
* What's the [0] for here? Looks wrong and causes stuff to segvRasmus Lerdorf2008-02-021-1/+1
|
* Small tweak. Need to make array and string callback syntax behave theRasmus Lerdorf2008-02-011-3/+3
| | | | | | same way. Also change "cannot" to "should not" since we obviously "can" make the call.
* [DOC]Marcus Boerger2008-02-011-40/+99
| | | | | | | | | | | | | | | | | | | | | | | | | | | - Fix callable/static mess, the following will now all result in a E_STRICT . binding a dynamic function as a static callback . static call of a dynamic function . is_callable() on a static binding to a dynamic function # [marcus@frodo PHP_5_3]$ php -a -d error_reporting=8191 # make: `sapi/cli/php' is up to date. # Interactive shell # # php > class t{ function f() { echo "Funny\n"; } } # php > $c = array("t","f"); # php > call_user_func($c); # # Strict Standards: call_user_func() expects parameter 1 to be a valid callback, non-static method t::f() cannot be called statically in php shell code on line 1 # Funny # php > var_dump(is_callable($c)); # # Strict Standards: Non-static method t::f() cannot be called statically in php shell code on line 1 # bool(true) # php > t::f(); # # Strict Standards: Non-static method t::f() should not be called statically in php shell code on line 1 # Funny # php >
* Fixed GC bugDmitry Stogov2008-01-241-11/+11
|
* Changed EG(argument_stack) implementation.Dmitry Stogov2008-01-241-8/+8
|
* MFH: Bump copyright year, 2 of 2.Sebastian Bergmann2007-12-311-1/+1
|