Felipe Pena
bffd08072c
- MFH: Fixed bug #48899 (is_callable returns true even if method does not exist in parent class)
2009-07-15 01:11:24 +00:00
Matt Wilmas
b907aa4331
MFH:
...
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
2009-06-04 18:20:45 +00:00
Dmitry Stogov
82b86c1c38
Bug #47880 (crashes in call_user_func_array())
2009-04-06 11:10:32 +00:00
Dmitry Stogov
875a27b7ed
Fixed bug #47851 (is_callable throws fatal error)
2009-04-02 09:56:33 +00:00
Dmitry Stogov
343bcc26ab
Fixed double efree()
2009-03-24 16:35:53 +00:00
Dmitry Stogov
5d060ebe05
Fixed __call() to be invoked on private/protected method access through callbacks
2009-01-14 11:56:08 +00:00
Sebastian Bergmann
08659c2dcd
MFH: Bump copyright year, 3 of 3.
2008-12-31 11:15:49 +00:00
Dmitry Stogov
7d4fd3fd38
Fixed bug #46409 (__invoke method called outside of object context when using array_map)
2008-11-27 19:01:23 +00:00
Stanislav Malyshev
2016a84cae
cleanup
2008-11-25 22:15:22 +00:00
Stanislav Malyshev
fce39ed9f7
add object-compatible array modes
2008-11-24 18:10:36 +00:00
Marcus Boerger
7126de4912
- Next step in namespaces, using / as namespace separator.
2008-11-04 15:58:55 +00:00
Dmitry Stogov
3c5ff0f8f4
Fixed bug #46246 (difference between call_user_func(array($this, $method)) and $this->$method())
2008-10-10 15:19:35 +00:00
Antony Dovgal
b6a2c27232
MFH: fix zend_register_functions() not displaying duplicate functions (reported by Gopal)
2008-08-22 14:51:30 +00:00
Etienne Kneuss
f90255c66b
MFH: Handlerify get_closure
2008-08-14 21:36:56 +00:00
Felipe Pena
3a9f17dfb8
- Fix build
2008-08-13 16:16:57 +00:00
Felipe Pena
cf7384aa40
- MFH: Constness (Added const qualifier to several function parameters)
2008-08-12 17:20:25 +00:00
Marcus Boerger
106864bcbb
- MFH Fix memleak with new error handling stack'ing
2008-08-11 17:19:20 +00:00
Marcus Boerger
3f7a4b7e90
- MFH error handling, now with save, replace, restore
2008-08-08 17:47:31 +00:00
Dmitry Stogov
43f278ccaf
Fixed bug #45744 (Case sensitive callback behaviour)
2008-08-07 12:04:14 +00:00
Felipe Pena
e304515ddb
- MFH: Added parameter TSRMLS_DC in zend_is_callable()
2008-08-02 04:46:07 +00:00
Felipe Pena
11bc1de770
- MFH: Removed unnecessary TSRMLS_FETCH()
2008-08-02 02:50:18 +00:00
Dmitry Stogov
8ee5b58bbe
Added checks for destroied objects
2008-07-26 18:32:20 +00:00
Dmitry Stogov
af05ce0af6
Fixed is_callable/call_user_func mess that had done different things for very similar arguments e.g. array("A","B") and "A::B"
2008-07-26 13:14:04 +00:00
Felipe Pena
0fbe6a0c14
- MFH: Added TSRMLS_DC to apply_func_args_t and zend_hash_apply_with_arguments.
2008-07-24 19:52:24 +00:00
Dmitry Stogov
feb8580166
LSB parent/self forwarding
2008-07-24 09:42:18 +00:00
Dmitry Stogov
0fa7fedfde
Fixed is_callable() to support closures and return appropriate function name
2008-07-14 12:18:23 +00:00
Dmitry Stogov
d5ef2f466c
Added support for lambda functions and closures
2008-07-14 09:49:03 +00:00
Felipe Pena
0da88458e2
- Fixed bug #45186 (__call depends on __callstatic in class scope)
2008-06-05 18:53:06 +00:00
Matt Wilmas
7da75d81e7
MFH: Add array_init_size() and use it where array size is known at initialization
2008-05-27 10:29:33 +00:00
Dmitry Stogov
907fa66507
Added API to use namesapces in internal extensions
2008-05-12 07:11:55 +00:00
Felipe Pena
1e650ca32d
- MFH: Fixed detection of invalid class name
2008-05-08 18:51:28 +00:00
Dmitry Stogov
5a0253c14c
Support for old-style constructors in namespaces
2008-05-05 09:44:39 +00:00
Dmitry Stogov
00346c2dbf
Optimized detection of "__call" and "__callstatic" methods.
2008-03-25 13:04:03 +00:00
Felipe Pena
2b10c53ae1
MFH: Dropped zend.ze1_compatibility_mode
...
[DOC]
2008-03-18 14:10:45 +00:00
Antony Dovgal
cbdc4b9af8
fix segfault when trying to clone uncloneable object because of zend.ze1_compatibility_mode which we should have got rid of years ago
2008-03-06 17:28:26 +00:00
Sebastian Bergmann
1b03ecf1c7
MFH: Fugbix typo.
2008-02-19 06:52:43 +00:00
Marcus Boerger
da2a1799ca
- MFH Windows build fix
2008-02-09 21:22:31 +00:00
Marcus Boerger
c7f71a7dd0
- MFH Simplify
2008-02-07 18:42:01 +00:00
Marcus Boerger
b7b41a6612
- MFH Fix missing check and tests
2008-02-06 20:40:19 +00:00
Marcus Boerger
0976a2646a
- MFH Fix cross class tree reference issues with callbacks (colder,helly)
2008-02-05 19:08:24 +00:00
Antony Dovgal
4904889568
MFH: fix leak appearing when calling non-static protected or private methods as static
2008-02-02 22:29:41 +00:00
Marcus Boerger
da5b979f88
- MFH Add comment that explains why we need E_ERROR in those cases
2008-02-02 15:48:04 +00:00
Marcus Boerger
ac8e76c714
- Fix remaining issue (should be last one)
2008-02-02 15:18:30 +00:00
Marcus Boerger
7769fda15c
- Drop useless TODO, this would need to be fixed in a generic way
2008-02-02 14:19:03 +00:00
Marcus Boerger
95a3cccf5f
- Fix flag handling in message generation
2008-02-02 13:56:59 +00:00
Rasmus Lerdorf
539eaceddc
What's the [0] for here? Looks wrong and causes stuff to segv
2008-02-02 01:12:01 +00:00
Rasmus Lerdorf
45db15ad4e
Small tweak. Need to make array and string callback syntax behave the
...
same way. Also change "cannot" to "should not" since we obviously
"can" make the call.
2008-02-01 23:09:10 +00:00
Marcus Boerger
e8a8acdf39
[DOC]
...
- 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 >
2008-02-01 21:27:55 +00:00
Dmitry Stogov
03c018d34e
Fixed GC bug
2008-01-24 10:49:26 +00:00
Dmitry Stogov
0b6825102d
Changed EG(argument_stack) implementation.
2008-01-24 09:41:39 +00:00