Commit Graph

212 Commits

Author SHA1 Message Date
Dmitry Stogov
7106659cfa Reverted "Rebind closure when binding to property" 2009-01-14 10:28:40 +00:00
Antony Dovgal
073f4b92d2 fix ZTS build 2009-01-08 18:37:59 +00:00
Andrei Zmievski
8ef4ac5ebb MFB 2009-01-07 22:13:07 +00:00
Marcus Boerger
9cc9a1107b - Rebind closure when binding to property 2009-01-03 17:46:25 +00:00
Sebastian Bergmann
7f4dc8702a Bump copyright year, 3 of 3. 2008-12-31 11:12:40 +00:00
Dmitry Stogov
e5454b359a Fixed bug #46409 (__invoke method called outside of object context when using array_map) 2008-11-27 19:02:45 +00:00
Dmitry Stogov
f870cd8589 Fixed bug #46308 (Invalid write when changing property from inside getter) 2008-10-17 10:26:16 +00:00
Etienne Kneuss
6423606a63 Handlerify get_closure 2008-08-14 21:26:05 +00:00
Felipe Pena
a5f867f3d5 - Constness (Added const qualifier to several function parameters) 2008-08-12 17:15:59 +00:00
Dmitry Stogov
bdf7981e28 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:56 +00:00
Felipe Pena
737dd4ef6e - MFB: Fixed bug #45089 (__callStatic $name case sensitivity) 2008-06-03 19:01:26 +00:00
Matt Wilmas
9c37df900c Add array_init_size() and use it where array size is known at initialization 2008-05-27 10:28:25 +00:00
Felipe Pena
c23bf369ec - Fixed bug #44899 (__isset usage changes behavior of empty()) (patch by Etienne Kneuss) 2008-05-03 00:36:54 +00:00
Dmitry Stogov
1d0f893b49 Lazy EG(active_symbol_table) initialization 2008-04-29 08:15:49 +00:00
Antony Dovgal
be6f9c2bb5 return empty string of correct type if __toString() returned invalid value 2008-03-17 15:05:28 +00:00
Antony Dovgal
abbd1e8ece fix #39127i (Old-style constructor fallbacks produce strange results) 2008-03-17 14:53:43 +00:00
Dmitry Stogov
9181650764 Fixed bug #44141 (private parent constructor callable through static function) 2008-02-21 13:55:55 +00:00
Sebastian Bergmann
9b620d50b4 Bump copyright year, 2 of 2. 2007-12-31 07:12:20 +00:00
Johannes Schlüter
e40c4fc243 - Fix #43450 (Memory leak on some functions with implicit object
__toString() call) (Davic C.)
2007-12-21 20:56:10 +00:00
Dmitry Stogov
3f247aaf10 Fixed bug #43136 (possible crash on script execution timeout. The EG(function_state_ptr) is completely removed, EG(current_execute_data)->function_state must be used instead) 2007-11-20 09:51:44 +00:00
Sara Golemon
56731de6dc Remove extraneous space in error/notice messages (felipe) 2007-11-17 21:51:40 +00:00
Dmitry Stogov
0dd6af6afd Fixed bug #42937 (__call() method not invoked when methods are called on parent from child class). 2007-11-12 09:12:20 +00:00
Yiduo (David) Wang
95da0dc570 Added macros for managing zval refcounts and is_ref statuses 2007-10-07 05:15:07 +00:00
Johannes Schlüter
4a19c90d4f - Allow binary strings as method name in $class::$method(), fixes
tests/lang/044.phpt (Etienne Kneuss)
2007-08-30 14:48:39 +00:00
Dmitry Stogov
92d3bc0c93 Fixed bug #40757 (get_object_vars get nothing in child class)
Fixed bug #41929 (Foreach on object does not iterate over all visible properties)
2007-07-24 11:40:07 +00:00
Sara Golemon
b1bc911cee Add support got zend_class_entry->get_static_method() and matching __callStatic() userspace method @doc 2007-07-21 05:27:07 +00:00
Dmitry Stogov
68845c6a83 Fixed bug #41961 (Ensure search for hidden private methods does not stray from class hierarchy). (robin_fernandes at uk dot ibm dot com) 2007-07-12 10:32:26 +00:00
Antony Dovgal
dd8af0654a fix folding, CS and WS 2007-07-11 11:19:58 +00:00
Stanislav Malyshev
50312ac474 fix comment 2007-03-23 17:39:19 +00:00
Marcus Boerger
13da6bf4d7 - Add debug_info helper to overloadedobjects 2007-01-18 23:23:13 +00:00
Dmitry Stogov
f6387758c6 - Fixed bug #35106 (nested foreach fails when array variable has a reference).
- Fixed bug #36214 (__get method works properly only when conditional operator is used).
- Fixed bug #39449 (Overloaded array properties do not work correctly).
- Fixed bug #39990 (Cannot "foreach" over overloaded properties).
2007-01-10 15:59:56 +00:00
Sebastian Bergmann
3717df72ae Bump year. 2007-01-01 09:29:37 +00:00
Dmitry Stogov
f37ad2e146 Fixed bug #39775 ("Indirect modification ..." message is not shown) 2006-12-08 16:23:04 +00:00
Dmitry Stogov
706a0364e6 Unicode support 2006-11-10 14:21:13 +00:00
Dmitry Stogov
f8b3df2bf2 Fixed bug #39297 (Memory corryption because of indirect modification of overloaded array). 2006-11-08 13:38:44 +00:00
Andrei Zmievski
83e0dbb3d2 - Add an extra parameter to the cast_object handler that can be used by
various types as needed.
- Use that parameter to pass a specific converter for
  IS_UNICODE/IS_STRING types.
2006-10-13 14:52:19 +00:00
Dmitry Stogov
5574651edb Fixed bug #38772 (inconsistent overriding of methods in different visibility contexts) 2006-09-12 11:01:31 +00:00
Antony Dovgal
9ea866fab4 apply more correct fix for bug #38461 2006-08-15 20:30:26 +00:00
Antony Dovgal
e17c15ba03 fix #38461 (setting private attribute with __set() produces segfault) 2006-08-15 13:19:00 +00:00
Dmitry Stogov
1ab16de084 Fixed bug #38220 (Crash on some object operations) 2006-07-26 15:29:39 +00:00
Marcus Boerger
617a18fc40 - Fix for #34505 and repated (improved version of what is in 5.2, 5.1) 2006-07-24 17:51:41 +00:00
Dmitry Stogov
933e8c0be0 Changed error message (E_ERROR -> E_NOTICE) in case of indirect modification of overloaded property. 2006-07-21 10:32:41 +00:00
Marcus Boerger
032dfa1bc4 - Fix issues with __get() returning arrays (might need to be revised) 2006-07-10 00:07:36 +00:00
Antony Dovgal
cbeedda2db export zend_std_get_constructor() 2006-07-05 11:41:09 +00:00
Antony Dovgal
636e7be681 improve error messages 2006-07-05 11:38:13 +00:00
Marcus Boerger
17912b4f1e - Bugfix #37632 (Protected method access problem) 2006-05-29 19:57:43 +00:00
Marcus Boerger
f93bf1007a - WS 2006-05-27 19:04:16 +00:00
Marcus Boerger
9265545992 - Fix bug #37212 (Access to protected property of common base class)
By adding "zend_class_entry *ce" to struct zend_property_info;
# Besides closing the bug this patch allows to optimize a bunch of
# property handling optimizations. I need to find out what all can be
# optimized. All other tests relevant to class handling still PASS.
2006-05-27 02:12:43 +00:00
Marcus Boerger
37561705a0 - Fix error message in unicode mode 2006-05-18 21:14:40 +00:00
Marcus Boerger
82a538c4fa - Enforece rule of disallowing throw in __toString() 2006-05-10 21:11:48 +00:00