Commit Graph

259 Commits

Author SHA1 Message Date
Sebastian Bergmann
9b620d50b4 Bump copyright year, 2 of 2. 2007-12-31 07:12:20 +00:00
Dmitry Stogov
a692ca857e executor optimization 2007-12-14 14:15:23 +00:00
Dmitry Stogov
31f6f1583e Fixed bug #43344 (Wrong error message for undefined namespace constant) 2007-12-07 17:12:22 +00:00
Dmitry Stogov
17c6007445 Fixed compilation on Windows 2007-11-23 15:02:50 +00:00
Dmitry Stogov
47dc82ecb9 Fixed bug #43128 (Very long class name causes segfault) 2007-11-22 13:33:53 +00:00
Dmitry Stogov
32ff00efce Speed-up of ZEND_DO_FCALL and ZEND_INIT_FCALL_BY_NAME by lowercasing and calculating hash values at compile time. 2007-11-22 09:03:11 +00:00
Dmitry Stogov
21f68908b9 Safe exit from executor() 2007-11-21 12:28:30 +00:00
Dmitry Stogov
e8621c99b2 dead code 2007-11-20 19:12:01 +00:00
Dmitry Stogov
ed26ad2809 Optimization of zend_do_fcall_common_helper() 2007-11-20 13:53:37 +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
Dmitry Stogov
c882ba8e69 Fixed bug #43175 (__destruct() throwing an exception with __call() causes segfault) 2007-11-06 14:56:32 +00:00
Dmitry Stogov
d945aea891 Fixed bug #43201 (Crash on using unitialized vals and __get/__set) 2007-11-06 14:12:14 +00:00
Dmitry Stogov
a53eb396b3 Fixed variations of bug #35163 2007-10-23 12:52:51 +00:00
Dmitry Stogov
d892fd3da4 Fixed bug #35163 (Array elements can lose references) 2007-10-23 09:55:25 +00:00
Yiduo (David) Wang
95da0dc570 Added macros for managing zval refcounts and is_ref statuses 2007-10-07 05:15:07 +00:00
Ilia Alshanetsky
42ec1edea4 MFB: Fixed bug #42817 (clone() on a non-object does not result in a fatal
error)
2007-10-04 23:25:53 +00:00
Dmitry Stogov
daf1121292 Fixed bug #42818 ($foo = clone(array()); leaks memory) 2007-10-03 09:47:59 +00:00
Dmitry Stogov
ca4c533843 Fixed bug #42772 (Storing $this in a static var fails while handling a cast to string) 2007-10-03 08:02:57 +00:00
Dmitry Stogov
654fd66533 ws 2007-10-03 06:49:34 +00:00
Dmitry Stogov
ae9a00a641 Fixed access to freed memory in tests/classes/__call_001.phpt 2007-10-02 08:47:42 +00:00
Dmitry Stogov
19d7fed62d Fixed bug #42819 (namespaces in indexes of constant arrays) 2007-10-02 08:27:19 +00:00
Dmitry Stogov
8d8d86eb7a Fixed bug #42802 (Namespace not supported in typehints) 2007-10-01 10:37:36 +00:00
Jani Taskinen
4fa6949a58 - Nuked unnecessary TSRMLS_FETCH(). 2007-09-27 16:54:55 +00:00
Dmitry Stogov
189ac4f201 Late Static Binding (Dmitry, Etienne Kneuss) 2007-09-26 07:16:33 +00:00
Dmitry Stogov
618644c201 - in case of ambiguity class name in namespace call __autoload() only after
checking for both (class from current namespace and internal class)
- improved class fetching performance
- fixed wrong (lowercase) name passed to __autoload() from call_user_func()
2007-09-11 11:23:12 +00:00
Jani Taskinen
15e5858698 - Fixed the rest of bug #41561 ( @ operator not working ) 2007-09-07 09:31:26 +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
611abb17fc Namespace constants 2007-08-24 13:50:52 +00:00
Dmitry Stogov
046b878b5b Fixed name resolution
namespace A;
    B::foo(); // 1. this is function "foo" from namespace "B"
              // 2. this is static method "foo" of class "B" from namespace "A"
              // 3. this is static methos "boo" of internal class "B"
  namespace A;
    A::foo(); // 1. this is function "foo" from namespace "A"
              // 2. this is static method "foo" of class "A" from namespace "A"
              // 3. this is static methos "foo" of internal class "A"
2007-08-22 07:39:37 +00:00
Dmitry Stogov
6e3a76898e Namespaces: improved run-time speed 2007-08-17 12:05:19 +00:00
Dmitry Stogov
d4af6ba6bf Fixed namespace name and internal class name ambiguity 2007-08-01 11:44:25 +00:00
Dmitry Stogov
c04dc1699b Namespace support for name ambiguity between namespace and class name 2007-07-27 13:41:36 +00:00
Dmitry Stogov
d0ec9d001c Fixed bug #40705 (Iterating within function moves original array pointer)
Fixed bug #40509 (key() function changed behaviour if global array is used within function)
2007-07-24 19:24:56 +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
Jani Taskinen
5d0176a32b - Fix compile warnings 2007-07-21 00:34:41 +00:00
Dmitry Stogov
5e21f121ec Fixed compilation on Windows 2007-07-14 08:51:17 +00:00
Dmitry Stogov
1f413bbc37 Namespaces 2007-07-12 09:23:48 +00:00
Dmitry Stogov
b0b6ee9d3b MTH: Fixed foreach by-ref bug 2007-06-18 11:20:01 +00:00
Dmitry Stogov
b898c98005 Fixed some class constant issues related to bug #41633 2007-06-13 14:50:33 +00:00
Dmitry Stogov
5dc51fecf8 Improved compilation of heredocs and interpolated strings. (Matt) 2007-05-18 13:12:47 +00:00
Antony Dovgal
9bc954147e use zend_make_string_zval(), we want to see the notices 2007-05-17 17:28:12 +00:00
Dmitry Stogov
d60a809744 Fixed bug #39542 (Behaviour of require/include different to < 5.2.0) 2007-05-11 08:03:00 +00:00
Dmitry Stogov
2908322c14 WIN64 support 2007-04-16 09:43:53 +00:00
Dmitry Stogov
1989ca7903 Removed undocumnted and incomplete support for strings in list() operator 2007-04-03 06:33:00 +00:00
Dmitry Stogov
6e96aba15b Fixed bug #40833 (Crash when using unset() on an ArrayAccess object retrieved via __get()). 2007-03-19 18:36:49 +00:00
Stanislav Malyshev
d3b90533fc MFB: fix crash on $x['x']['y'] += 1, patch by Brian Shire 2007-03-08 21:06:54 +00:00
Marcus Boerger
80c2f1f92c - Improved version of ternary shortcut 2007-03-08 17:30:28 +00:00
Dmitry Stogov
64dcd4af81 Fixed bug #40591 (list()="string"; gives invalid opcode) 2007-02-25 16:12:18 +00:00
Antony Dovgal
09f196f4b6 fix #40621 (Crash when constructor called inappropriately (statically)) 2007-02-24 21:29:22 +00:00
Dmitry Stogov
d7df9badf6 Added runtime JIT auto-globals fetching and caching 2007-02-16 19:36:45 +00:00
Marcus Boerger
bd7d5b527c - No reason not to pass return_value_ptr for non return-by-reference functions 2007-02-08 14:47:32 +00:00
Dmitry Stogov
f994b102c7 Removed dead code 2007-02-01 16:38:15 +00:00
Marcus Boerger
cbcda92dc5 - MFB Missing part of __toString() support 2007-01-11 22:35:36 +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
e88cc26864 Fixed bug #39825 (foreach produces memory error) 2006-12-25 19:23:18 +00:00
Dmitry Stogov
326fcd0261 Fixed bug #39944 (References broken) 2006-12-25 14:16:38 +00:00
Dmitry Stogov
1bf9c4a45d Fixed bug #39304 (Segmentation fault with list unpacking of string offset) 2006-10-30 11:04:47 +00:00
Johannes Schlüter
0e58baae93 - Fix #38465 (ReflectionParameter fails if default value is an access to self:: 2006-10-18 16:34:25 +00:00
Dmitry Stogov
ea1cd51094 Fixed bug #39017 (foreach(($obj = new myClass) as $v); echo $obj; segfaults) 2006-10-03 09:05:35 +00:00
Dmitry Stogov
aaed3f9fcb Fixed memory leak (Nuno) 2006-10-03 07:31:10 +00:00
Dmitry Stogov
798d93c4da Fixed bug #38808 ("maybe ref" issue for current() and others) 2006-09-26 10:31:04 +00:00
Dmitry Stogov
7aeb4421b7 Fixed bugs #34065 and #38623 (throw in foreach/switch causes memory leaks) 2006-09-19 21:36:00 +00:00
Dmitry Stogov
128548a5c0 Disabled autoconversion of hash keys (from string to unicode) for PHP arrays 2006-09-19 10:38:31 +00:00
Dmitry Stogov
c0dbffaa3c Forgotten part of patch (Small optimization of ZEND_INIT_ARRAY/ZEND_ADD_ARRAY_ELEMENT) 2006-09-19 07:40:38 +00:00
Dmitry Stogov
9d55b3d3fc Small optimization of ZEND_INIT_ARRAY/ZEND_ADD_ARRAY_ELEMENT. (Nuno, Dmitry) 2006-09-18 14:35:37 +00:00
Dmitry Stogov
2ea26c6570 Reverted last Ilia's patch (for #38579).
The patch didn't fix the bug and made new one.
2006-09-06 06:51:05 +00:00
Ilia Alshanetsky
2f0d258606 MFB: Fixed bug #38579 require_once/include_once optimization causes files
to be loaded multiple times.
2006-09-05 15:52:42 +00:00
Dmitry Stogov
72594b81b8 Removed unreachable handlers 2006-09-04 13:59:07 +00:00
Antony Dovgal
c022ca263b %s -> %v
ce names are in Unicode
2006-08-08 10:10:26 +00:00
Marcus Boerger
2916886523 - Speling 2006-08-08 00:36:19 +00:00
Marcus Boerger
5e9acea82e - Fixed Bug #38064 ignored constructor visibility 2006-08-07 23:16:20 +00:00
Dmitry Stogov
c021824fc1 Fixed bug #38287 (static variables mess up global vars) 2006-08-07 15:15:36 +00:00
Antony Dovgal
9625469a44 make it consistent 2006-08-03 10:57:13 +00:00
Antony Dovgal
60feb94bf6 improve error message 2006-08-03 10:52:15 +00:00
Dmitry Stogov
1e71620e8f Fixed bug #38234 (Exception in __clone makes memory leak) 2006-07-27 10:44:19 +00:00
Dmitry Stogov
3f51a6970d Fixed mess with semantic of zend_normalize_identifier()'s return value (SUCCESS != 1) 2006-07-27 09:33:44 +00:00
Dmitry Stogov
b9915a9264 Fixed bug #38211 (variable name and cookie name match breaks script execution) 2006-07-26 09:24:50 +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
a7cfcd6b35 MTH: Fixed bug #37144 (PHP craches trying to assign into property of dead object) 2006-07-21 11:13:24 +00:00
Dmitry Stogov
881258ad6e Fixed wrong "type" argument to read_property() handler 2006-07-21 08:39:43 +00:00
Antony Dovgal
4343311203 get rid of more "might be uninitialized" warnings 2006-07-12 21:14:11 +00:00
Antony Dovgal
527f93f25d make sure return_value_used is always initialized 2006-07-12 21:07:07 +00:00
Andrei Zmievski
ed77c07a35 Commit Sara's patch for supporting filesystem enccoding in
include/require.
2006-07-12 17:04:13 +00:00
Dmitry Stogov
b52137a828 Fixed memory leak in case of exception in iterator callbacks in 'foreach(new Iterator()...' (spl/tests/iterator_047.phpt). 2006-07-11 08:52:44 +00:00
Sara Golemon
aee52fa3ea Silence FETCH_OBJ_IS / undefined notices 2006-07-06 15:28:05 +00:00
Stefan Esser
08e355e39e Added hook for compile_string() 2006-06-13 12:56:20 +00:00
Dmitry Stogov
4ef9b25370 Proper fix for bug #37707 ("clone $x" must call __clone() enven if result value is not used) 2006-06-08 08:56:47 +00:00
Dmitry Stogov
de90af4ddc Wrap "wrong" unreachable code with "#if 0" 2006-06-08 08:38:11 +00:00
Ilia Alshanetsky
72a4a1362a MFB: Fixed bug #37707 clone without assigning leaks memory 2006-06-07 13:43:13 +00:00
Marcus Boerger
09cbc2479e - Regenerated after zend_vm_def.h change 2006-06-07 09:25:04 +00:00
Johannes Schlüter
80cff030da - Fix printf modifier 2006-05-28 19:45:02 +00:00
Marcus Boerger
a871b842f8 - Fix warning 2006-05-20 15:38:36 +00:00
Dmitry Stogov
fb1a172cae Optimized require_once/include_once (eliminated fopen() on second usage) 2006-05-15 15:31:50 +00:00
Marcus Boerger
d588eb2012 - Drop a few superflous if conditions (now the generated file) 2006-05-11 21:12:27 +00:00
Dmitry Stogov
30ff22ca47 Fixed bug #37251 (deadlock when custom error handler is to catch array type hint error). 2006-05-05 08:04:55 +00:00
Dmitry Stogov
ec12098c3b Fixed bug #37046 (foreach breaks static scope) 2006-04-12 11:38:09 +00:00
Marcus Boerger
509c9d44e2 - Iterators from overloaded objects are allowed to not have keys... 2006-04-10 23:15:26 +00:00
Dmitry Stogov
ea9b9502e9 typo 2006-03-16 15:42:54 +00:00
Dmitry Stogov
89a1a4cbc4 Return "new" by reference now throws an E_STRICT error 2006-03-16 15:35:26 +00:00