Commit Graph

5081 Commits

Author SHA1 Message Date
Dmitry Stogov
ce23692663 Fixed bug #32799 (crash: calling the corresponding global var during the destruct) 2005-06-06 10:38:43 +00:00
Dmitry Stogov
e5d3e07862 Added test for bug #32596 (Segfault/Memory Leak by getClass (etc) in __destruct) 2005-06-06 09:50:40 +00:00
Dmitry Stogov
61054dbcd0 Fixed bug #32993 (implemented Iterator function current() don't throw exception) 2005-06-06 08:24:05 +00:00
Dmitry Stogov
cd88e646fd Fixed bug #33171 (foreach enumerates private fields declared in base classes) 2005-06-06 07:52:08 +00:00
Wez Furlong
42ada22e0c Avoid double-freeing streams.
This can happen because all streams are registered as resources;
the engine also tracks them in the open_files global.

Avoid the potential for double-freeing by simply making streams exposed to the
engine have no closer for the engine to call; they will already be in the
resource list, and thus will be shut down properly at request end.
2005-06-06 01:51:48 +00:00
8f6ed7b085 ChangeLog update 2005-06-05 00:35:24 +00:00
Zeev Suraski
d33500ee20 Thought I committed it ages ago... Anyway, without further delays, the final
__halt_compiler() patch
2005-06-04 16:16:19 +00:00
09c2da0d07 ChangeLog update 2005-06-04 00:35:41 +00:00
Dmitry Stogov
e3cfb42bbd Added test for 5.0 specific bug #30394 (Assignment operators yield wrong result with __get/__set) 2005-06-03 15:38:32 +00:00
Dmitry Stogov
89e53d5ab2 Fixed bug #30080 (Passing array or non array of objects) 2005-06-03 15:02:49 +00:00
Dmitry Stogov
6b39b374ef Fixed bug #27598 (list() array key assignment causes HUGE memory leak) 2005-06-03 13:57:26 +00:00
Dmitry Stogov
3d7b0bab28 Fixed memory allocation bugs related to magic object handlers (__get(), __set(),
...)
2005-06-03 11:16:19 +00:00
f58c83135d ChangeLog update 2005-06-02 00:35:34 +00:00
Dmitry Stogov
9383e1b858 Fixed bug #30791 (magic methods (__sleep/__wakeup/__toString) call __call if object is overloaded) 2005-06-01 11:03:58 +00:00
fc8ae455df ChangeLog update 2005-06-01 00:35:10 +00:00
Magnus M��tt�
80eb74e4fe Fix test 2005-05-31 13:46:17 +00:00
Dmitry Stogov
747074f988 Reverted wrong fix for bug #30572.
Seems the bug was already fixed in other way.
But reverted patch produced a lot of valgrind errors, because IS_TMP_VAR operands don't initialize refcount.
2005-05-31 11:16:51 +00:00
Marcus Boerger
4f9a2bed42 - Only allow changing return ref agnostic when a script method overrides an
internal method (found by dmitry)
2005-05-31 09:06:43 +00:00
59fb0f2e8b ChangeLog update 2005-05-30 00:33:47 +00:00
foobar
a20383ba06 - Unify the "configure --help" texts 2005-05-29 23:17:16 +00:00
Hartmut Holzgraefe
d1f653bd08 forgot to re-add 1.875 as a valid bison version after testing 2005-05-29 18:56:18 +00:00
Hartmut Holzgraefe
fce59d9dae bison may be installed under a different executable name, e.g.
YACC="bison-1.75" configure ...

removing the check for "bison -y" allows for this
the check was redundant anyway as the following one filters
for "GNU Bison" in the --version output
2005-05-29 18:50:03 +00:00
Hartmut Holzgraefe
af14bbe455 avoid code duplication in bison version test 2005-05-29 18:04:35 +00:00
23a7bc0203 ChangeLog update 2005-05-29 00:34:21 +00:00
Marcus Boerger
4918b67ac5 - Make zend_do_inheritance ZEND_API 2005-05-28 10:24:56 +00:00
b43240dfcf ChangeLog update 2005-05-28 00:40:27 +00:00
Dmitry Stogov
743c5bb15b Fixed bug #22836 (returning reference to uninitialized variable) 2005-05-27 16:18:07 +00:00
cbee2d697b ChangeLog update 2005-05-27 00:34:54 +00:00
Dmitry Stogov
d2018ef2c0 Fixed bug #33116 (crash when assigning class name to global variable in __autoload). 2005-05-26 14:28:24 +00:00
Dmitry Stogov
1a72341328 Added array type hinting. (This patch requires full re-make) 2005-05-26 13:46:17 +00:00
Marcus Boerger
3453cf642a - Add new tests 2005-05-26 12:22:18 +00:00
25108c37ca ChangeLog update 2005-05-23 00:34:48 +00:00
Ilia Alshanetsky
76c05604a6 Fixed bug #29338 (unencoded spaces get ignored after certain tags). 2005-05-22 16:40:06 +00:00
Stanislav Malyshev
6ba1dd9cbc fix leak 2005-05-22 11:10:38 +00:00
5f6d5e4fb3 ChangeLog update 2005-05-20 00:33:33 +00:00
Dmitry Stogov
6e9e5b099c Strict warnings 2005-05-19 09:58:23 +00:00
99415eacbb ChangeLog update 2005-05-19 00:38:50 +00:00
Stanislav Malyshev
92c8c09da5 fix for #29890 - part 2 2005-05-18 18:10:24 +00:00
Stanislav Malyshev
3af3379a27 test 2005-05-18 18:08:02 +00:00
Stanislav Malyshev
ba7123fc9b fix #29890 - crash when function call fails 2005-05-18 18:02:50 +00:00
Stanislav Malyshev
94666dcfb6 revert - seems to be fixed elsewhere 2005-05-18 15:30:35 +00:00
Stanislav Malyshev
e04666ae20 fix #30451 static properties don't work properly 2005-05-18 15:14:36 +00:00
Stanislav Malyshev
b03b79c985 tests 2005-05-18 14:56:34 +00:00
389b1abc16 ChangeLog update 2005-05-18 00:33:43 +00:00
Magnus M��tt�
2ebda52b24 Fix tests. 2005-05-17 17:34:44 +00:00
416ea7638d ChangeLog update 2005-05-14 00:34:01 +00:00
Antony Dovgal
5d8394879b fix bug #29975 (memory leaks when set_error_handler() is used inside error handler) 2005-05-13 23:08:43 +00:00
66a821a763 ChangeLog update 2005-05-13 00:35:04 +00:00
Marcus Boerger
c1e480d46e - Make ReflectionObject::hasProperty() recognize dynamically added props 2005-05-12 21:25:42 +00:00
deacfcefc2 ChangeLog update 2005-05-07 00:36:11 +00:00
d34e9a33a5 ChangeLog update 2005-05-06 00:34:56 +00:00
foobar
625d5ba4a3 typofix :) 2005-05-06 00:09:51 +00:00
Dmitry Stogov
79d6f11a4a Fixed bug #31525 (object reference being dropped. $this getting lost) 2005-05-05 17:37:25 +00:00
1ba54f5fca ChangeLog update 2005-05-05 00:36:44 +00:00
Stanislav Malyshev
7b34bb2be7 fix bug #32924: prepend does not add file to included files 2005-05-04 16:17:33 +00:00
Dmitry Stogov
b2d28102a8 Fixed bug #30641 (Compile error: error: symbol "zend_error" is used but not defined) 2005-05-04 12:38:49 +00:00
Dmitry Stogov
5e4d91582a Fixed bug #30707 (Segmentation fault on exception in method) 2005-05-04 11:17:30 +00:00
Dmitry Stogov
37d16df05c Fixed bug #30162 (Catching exception in constructor couses lose of $this) 2005-05-04 08:45:46 +00:00
95629a63df ChangeLog update 2005-05-04 00:34:21 +00:00
Dmitry Stogov
b3a8a50581 Fixed notice message 2005-05-03 14:05:52 +00:00
Dmitry Stogov
69326a796e Fixed destruction of zval after returning from __call() 2005-05-03 12:47:27 +00:00
Dmitry Stogov
81b536f4a6 Fixed bug #32296 (get_class_methods output has changed between 5.0.2 and 5.0.3)
Now get_class_methods() shows accessible private and protected methods if it is called from class scope.
2005-05-03 08:52:04 +00:00
2ad6cacf7e ChangeLog update 2005-05-03 00:35:54 +00:00
Marcus Boerger
56d543c161 - Extend API to support real existance test without the need to add any new
functions or change any behavior
2005-05-02 16:18:02 +00:00
Marcus Boerger
138c5457ac - Part 2 of #30126: Enhancement for error message for abstract classes 2005-05-02 15:57:35 +00:00
Marcus Boerger
f44dc4c930 - Part 1 of #30126: Enhancement for error message for abstract classes 2005-05-02 15:55:05 +00:00
ab3f962b8b ChangeLog update 2005-04-30 00:36:09 +00:00
foobar
217e89b124 compile fix 2005-04-29 10:40:01 +00:00
foobar
e57408a098 Make sure E_STRICT is set always 2005-04-29 08:54:16 +00:00
Dmitry Stogov
8b7a03c889 Fixed bug #30332 (zend.ze1_compatibility_mode isnt fully compatable with array_push()) 2005-04-29 07:59:04 +00:00
Dmitry Stogov
8db238b075 Fixed bug #32852 (Crash with singleton and __destruct when zend.ze1_compatibility_mode = On)
Fixed bug #31828 (Crash with zend.ze1_compatibility_mode=On)
Fixed bug #32080 (segfault when assigning object to itself with zend.ze1_compatibility_mode=On)
2005-04-29 07:03:54 +00:00
foobar
96bc29839b - Unify error_reporting setting + make sure E_STRICT is set when wanted 2005-04-29 01:04:32 +00:00
56fb07e147 ChangeLog update 2005-04-29 00:43:01 +00:00
Dmitry Stogov
9966587aaf Fixed bug #29015 (Incorrect behavior of member vars(non string ones)-numeric mem vars und others) 2005-04-28 17:40:11 +00:00
099a7eb6b8 ChangeLog update 2005-04-28 00:35:07 +00:00
Dmitry Stogov
c81db6bc56 Fixed bug #29210 (Function: is_callable - no support for private and protected classes) 2005-04-27 15:45:36 +00:00
Dmitry Stogov
abb07db4c6 Fixed bug #29104 (Function declaration in method doesn't work) 2005-04-27 13:30:53 +00:00
Dmitry Stogov
aba79c268c Fixed bug #32833 (Invalid opcode) 2005-04-27 12:16:32 +00:00
Dmitry Stogov
28e68301dc Fixed bug #32674 (exception in iterator causes crash) 2005-04-27 06:47:08 +00:00
04b5f20be5 ChangeLog update 2005-04-27 00:38:26 +00:00
Dmitry Stogov
a9a319b078 Fixed bug #30889 (Conflict between __get/__set and ++ operator) 2005-04-26 13:23:23 +00:00
Dmitry Stogov
1098d9bccb fix 2005-04-26 12:01:31 +00:00
Dmitry Stogov
5f600cdf57 Fixed bug #30702 (cannot initialize class variable from class constant) 2005-04-26 09:27:28 +00:00
Dmitry Stogov
694f7a9e90 Fixed bug #32427 (Interfaces are not allowed 'static' access modifier). 2005-04-26 08:48:23 +00:00
Dmitry Stogov
4f15b20b92 Fixed bug #32429 (method_exists() always return TRUE if __call method exists) 2005-04-26 08:47:31 +00:00
daf6b8303e ChangeLog update 2005-04-26 00:34:22 +00:00
Andrei Zmievski
53e3b0fcb8 Reverting. Let's not introduce major BC breakage like this without a
good reason.
2005-04-25 20:41:26 +00:00
Dmitry Stogov
35b38598cc Fixed bug #29944 (Function defined in switch, crashes). 2005-04-25 09:56:42 +00:00
foobar
9a020fce63 ws 2005-04-25 08:21:15 +00:00
Dmitry Stogov
c78ec1615a Fixed call to estrndup() with invalid length 2005-04-25 06:13:57 +00:00
Sebastian Bergmann
11a91f04b2 Correct grammar. 2005-04-25 05:13:36 +00:00
c3da4c9102 ChangeLog update 2005-04-25 00:42:22 +00:00
Marcus Boerger
20e67fd175 - Need to copy doc comments correct for properties 2005-04-24 17:32:05 +00:00
e5a1216c94 ChangeLog update 2005-04-24 00:33:38 +00:00
Marcus Boerger
3080d49ed4 - Add new tests 2005-04-23 15:21:07 +00:00
ace93a1de9 ChangeLog update 2005-04-22 00:45:41 +00:00
foobar
62a1f82e4a Fix test when register_long_arrays is off in your php.ini 2005-04-21 14:22:53 +00:00
f2ae989262 ChangeLog update 2005-04-20 00:43:11 +00:00
Marcus Boerger
67a226d910 - Add ReflectionProperty::getDocComment() 2005-04-19 22:04:59 +00:00
foobar
0e57528666 No c++ comments in C code 2005-04-19 11:41:04 +00:00
aee0f87ccd ChangeLog update 2005-04-19 00:35:13 +00:00
Dmitry Stogov
4e04b5b5fb Fixed memory leak in debug_backtrace() 2005-04-18 07:25:20 +00:00
d28acc8452 ChangeLog update 2005-04-18 00:35:20 +00:00
Marcus Boerger
7aad424332 - Fix special cases of property_exists() 2005-04-17 20:16:14 +00:00
Marcus Boerger
79b9084eef - Fix logic 2005-04-17 20:15:23 +00:00
65c6833d66 ChangeLog update 2005-04-17 00:37:12 +00:00
Sara Golemon
f838f8e37d method_exists() regression test 2005-04-16 15:36:22 +00:00
Sara Golemon
083795cbbf Fix method_exists(), pce is fetched, but ce is used 2005-04-16 15:24:56 +00:00
e6614e451d ChangeLog update 2005-04-16 00:34:23 +00:00
Marcus Boerger
5b21e48557 - Fix even though we already know that the function will be renamed 2005-04-15 18:53:42 +00:00
Andrei Zmievski
4fbddd03d7 Fix certain operations to stop relying on presence of read_property and
write_property handlers. They may be NULL'ed out by certain objects
pretending to be pure arrays, for example. Do checks first.
2005-04-15 17:15:18 +00:00
ecf95a1e66 ChangeLog update 2005-04-13 00:34:35 +00:00
Stanislav Malyshev
5ddf66e004 fix memory corruption if one on the on_modify handlers errors out 2005-04-12 13:06:39 +00:00
6e58f898d5 ChangeLog update 2005-04-09 00:36:05 +00:00
Marcus Boerger
d100328de8 - Fix memory corruption found by rob 2005-04-08 14:33:00 +00:00
Marcus Boerger
c4dbeca169 - Ensure we see all errors. No need for () in return 2005-04-08 14:06:05 +00:00
Marcus Boerger
32182b190a - Add property_exits() 2005-04-08 13:33:15 +00:00
Marcus Boerger
adb3d0197e - No E_ERROR when we just check (where did my 0->1 change go on first commit?) 2005-04-08 12:24:09 +00:00
Marcus Boerger
40cc0b7724 - No E_ERROR when we just check, here visibility simply means there is none 2005-04-08 12:15:24 +00:00
Marcus Boerger
698d301c1c - Simplify getting property info and make it an api function 2005-04-08 11:35:11 +00:00
5921e6c039 ChangeLog update 2005-04-08 00:37:35 +00:00
foobar
355eefe5f9 - Nuke the code duplication 2005-04-07 20:15:21 +00:00
foobar
9356d7fc64 Fix build when USE_ZEND_ALLOC is 0 2005-04-07 16:22:15 +00:00
Zeev Suraski
779f5c5c19 Fix strdup() bug when USE_ZEND_ALLOC is disabled 2005-04-07 13:59:45 +00:00
e89235fa17 ChangeLog update 2005-04-06 00:36:12 +00:00
Marcus Boerger
d77945ef78 - Just return FAILURE & allow NULL without emmidiate error 2005-04-05 09:16:27 +00:00
0b0fc93a55 ChangeLog update 2005-04-05 00:35:37 +00:00
Stanislav Malyshev
95f860d025 MF50: fix backtraces - non-Zend classes have names too 2005-04-04 17:23:38 +00:00
b30fd67736 ChangeLog update 2005-04-04 00:35:42 +00:00
1d5691e2cc ChangeLog update 2005-04-01 01:39:40 +00:00
e707137ed3 ChangeLog update 2005-03-27 01:34:12 +00:00
foobar
fcba5e099c - Fixed bug #28839 (SIGSEGV in interactive mode (php -a))
(kameshj at fastmail dot fm)
2005-03-26 02:43:02 +00:00
8817f64457 ChangeLog update 2005-03-25 01:34:02 +00:00
Marcus Boerger
3f16ad98c9 - Second part of removing temp solution 2005-03-24 23:56:14 +00:00
Marcus Boerger
bfd0e28e5c - Remove potential bad solution for now
# This seemed to be necessary since there were cases where exceptions were
# ignored by exit() with the result of a silent exit without showing the
# pending exception. Since atm we cannot reproduce it anymore we drop it.
2005-03-24 23:52:34 +00:00
0a65a3d505 ChangeLog update 2005-03-24 01:35:55 +00:00
Andrei Zmievski
992c28db75 Consolidate: call _get_zval_ptr_var() for IS_VAR case in
_get_zval_ptr().
2005-03-23 21:05:56 +00:00
3b7f8ef5a1 ChangeLog update 2005-03-22 01:34:26 +00:00
Andrei Zmievski
9bf6a7f229 internal_function->fn_flags is not initialized at this point 2005-03-21 06:20:17 +00:00
0ac2c94ffa ChangeLog update 2005-03-21 01:42:27 +00:00
Marcus Boerger
29b4277e2d - Added missing description (thanks jani) 2005-03-20 22:08:16 +00:00
Marcus Boerger
d7a7913476 - Add new test 2005-03-20 20:14:27 +00:00
1b42ccfbff ChangeLog update 2005-03-20 01:35:48 +00:00
Marcus Boerger
6a6eaf2b72 - More fixes to gracefully act on exception thrown in overload methods 2005-03-19 15:32:18 +00:00
Marcus Boerger
cf020f1334 - Fix #31185 2005-03-19 15:06:39 +00:00
Marcus Boerger
32c2e664a6 - Fix all incarnations of bug #30266
# most probably we should emit a fatal error here but that has to be
# discussed first
2005-03-19 14:25:42 +00:00
Andi Gutmans
e9dbeabd38 - Fix typos 2005-03-19 01:11:48 +00:00
e5f7f63d36 ChangeLog update 2005-03-17 01:43:26 +00:00
Wez Furlong
7de1d279cc don't call rshutdown twice for dl()'d modules.
Spotted by Andrei.
2005-03-16 04:18:42 +00:00
9d5b3e55e3 ChangeLog update 2005-03-16 01:38:05 +00:00
Wez Furlong
35b0b8de99 fix shutdown so that dl()'d modules are unloaded after all the dtors have
been called.
2005-03-15 23:46:29 +00:00
03aa52bae6 ChangeLog update 2005-03-15 01:43:31 +00:00
Zeev Suraski
1dbc47c43f Clarify logic 2005-03-14 12:53:34 +00:00
Stanislav Malyshev
7b6ec9178f ws 2005-03-14 09:21:04 +00:00
81629076f8 ChangeLog update 2005-03-14 01:42:08 +00:00
Stanislav Malyshev
dd64e6dede Do not convert ZEND_HANDLE_FP to ZEND_HANDLE_STREAM but allow using reader/closer
on it
2005-03-13 17:48:45 +00:00
Marcus Boerger
c6e39471de - More exact signatures (even though complete correct not possible atm) 2005-03-13 16:34:37 +00:00
Stanislav Malyshev
c3957fe1e8 Fix get_extension_funcs() - extension names are now lowercased, so should
be function arguments.
2005-03-13 15:30:10 +00:00
Marcus Boerger
d8db1c2cc5 - Actually this is a much better error decription 2005-03-13 13:22:02 +00:00
Marcus Boerger
565e832edf - Bugfix #32290 2005-03-13 13:15:08 +00:00
83c13d22e9 ChangeLog update 2005-03-13 01:36:01 +00:00
Marcus Boerger
6dc04d98f2 - If an exception is pending we don't bail out but show the unhandled exception 2005-03-12 22:42:37 +00:00
73aec110ce ChangeLog update 2005-03-12 01:35:45 +00:00
Marcus Boerger
b4a961a234 - Add new test 2005-03-11 02:32:07 +00:00
5727828651 ChangeLog update 2005-03-11 01:50:54 +00:00
Marcus Boerger
45212809b5 - Irrelevant 2005-03-11 01:32:20 +00:00
Marcus Boerger
b924ef8796 - Don't touch refcount/is_ref 2005-03-11 00:44:34 +00:00
Marcus Boerger
0a93d54c53 - Bugfix #28442 2005-03-10 13:20:26 +00:00
Marcus Boerger
e4599c6944 - #31562 2nd part 2005-03-10 02:32:00 +00:00
Marcus Boerger
affc9bb69b - Fix #31562 2005-03-10 02:29:45 +00:00
7ab5b4ff42 ChangeLog update 2005-03-08 01:42:09 +00:00
Marcus Boerger
757da1eed5 - New Interface Serializeable
- Change signature of unserialize() callback to ease inheritance and
  support code reuse of handlers
2005-03-07 22:23:14 +00:00
Marcus Boerger
4ae4b63f44 - Add updated description 2005-03-07 19:31:44 +00:00
Marcus Boerger
6f00c1b73b - Fix #32226 2005-03-07 19:28:10 +00:00
Zeev Suraski
118b7b567a Revert // </script> patch 2005-03-07 16:48:49 +00:00
b25b123467 ChangeLog update 2005-03-07 01:33:24 +00:00
Marcus Boerger
86ac9559be - Fix by Tim 2005-03-06 22:15:35 +00:00
foobar
0344652b38 Fixed compile warning (bug #32046) 2005-03-06 16:22:02 +00:00
foobar
ede98577e2 Fix compile warning (bug #32047) 2005-03-06 15:55:41 +00:00
37ab4fe1b2 ChangeLog update 2005-03-02 01:35:54 +00:00
Marcus Boerger
0b3ed59fb6 - Support statuc methods/functions 2005-03-01 23:41:49 +00:00
foobar
143d62a179 Fix the fix for one line comments with <script..> </script> tags 2005-03-01 02:17:41 +00:00
87528d9138 ChangeLog update 2005-03-01 01:41:19 +00:00
Marcus Boerger
ddd62f2b07 - Add support for methods dynamically added through object handlers 2005-02-28 18:53:33 +00:00
4832e83a1d ChangeLog update 2005-02-28 01:39:43 +00:00
Marcus Boerger
a586cecf35 - If silence if wanted we do not error out 2005-02-27 22:22:26 +00:00
Marcus Boerger
c4bc32ff7b - Add two new methods
- Fix signature, no need to cast it
2005-02-27 22:21:17 +00:00
Marcus Boerger
c087f07233 - These must be initailized 2005-02-27 22:18:55 +00:00
Marcus Boerger
8324d21955 - Update method_exists to new handlers and allow first parameter as string 2005-02-27 15:03:09 +00:00
foobar
0ec872a153 - Cache the version check results
# ..and prepare for --enable-developer-mode
2005-02-27 12:42:28 +00:00
896efd3a13 ChangeLog update 2005-02-25 01:35:47 +00:00
Andi Gutmans
ac63e8c2c1 - Make one line comments work the same with <script ...> </script> as with
- other tags. This will break scripts that have whitespace at the end
- of the closing tag </script    > but this is barely used as it is
- and I doubt ppl used whitespace. (patch by Jani)
2005-02-24 19:25:44 +00:00
Andi Gutmans
74b722f14c - This part of the patch was right 2005-02-24 18:40:19 +00:00
Dmitry Stogov
f3f8792b9b Fixed bug in ZEND_POST_INC/ZEND_POST_DEC handlers.
These opcodes assume IS_TMP_VAR as result.
2005-02-24 08:52:11 +00:00
Andi Gutmans
de9206a9e9 - Need zend_Compile.h for struct _zend_arg_info definiton (thanks to Joe
Orton)
2005-02-24 03:11:29 +00:00
Andi Gutmans
8140f095c6 - Revert following patch until we decide what is the right way to handle
- this:
 - Fix signatures they are all meant to be able to deal with any type in any
    object storage (though we are still missing several parts)
2005-02-24 02:35:59 +00:00
5caddd66ba ChangeLog update 2005-02-24 01:35:08 +00:00
Derick Rethans
30d9fd6bba - Fixed bug #32076 (ReflectionMethod :: isDestructor() always return true)
(Patch by Antony Dogval)
2005-02-23 12:20:04 +00:00
Stanislav Malyshev
5b98a09219 Custom object serializer infrastructure
# The detailed announce on the list will follow
2005-02-23 11:15:51 +00:00
foobar
775cfd708e Hack the planet 2005-02-23 07:50:28 +00:00
a5806375b5 ChangeLog update 2005-02-23 01:36:05 +00:00
Marcus Boerger
72c1baa9d8 - Allow to convert Traversable into Aggregate 2005-02-23 01:09:10 +00:00
Marcus Boerger
237cd7e511 - We cannot provide this fallback becuase it requires zend_object ptr's.
# Found that out after discussing with Stas. As a consequence still every
# extension that provides specialised class types is responsible for
# calling its __destruct. This is currently not done for several exts.
2005-02-22 14:53:57 +00:00
foobar
f180478aad Fix cross-compile 2005-02-22 13:52:51 +00:00
foobar
2926bed9f2 Fix build (it was #ifNdef NETWARE..) 2005-02-22 13:49:52 +00:00
Marcus Boerger
3096f1edac - Fix signatures they are all meant to be able to deal with any type in any
object storage (though we are still missing several parts)
2005-02-22 12:06:59 +00:00
Marcus Boerger
93e13aff05 - Force calling of dtors unless otherwise specified (fixes several __destruct bugs) 2005-02-22 11:43:05 +00:00
Anantha Kesari H Y
8eb3b715d1 NetWare can include autoconf generated config headers 2005-02-22 08:48:33 +00:00
Anantha Kesari H Y
d00a304f0e NetWare can make use of the configure script generated header file. 2005-02-22 06:13:49 +00:00
4fd1d7e85a ChangeLog update 2005-02-22 01:36:03 +00:00
Moriyoshi Koizumi
38dfd6886d - Add missing entry. 2005-02-21 15:10:19 +00:00
5a9e110bf9 ChangeLog update 2005-02-21 01:33:58 +00:00
Dmitry Stogov
57d2c2bb83 Fixed possible memory corruption 2005-02-20 10:19:11 +00:00
8f2cfb9d4e ChangeLog update 2005-02-20 01:36:02 +00:00
Rui Hirokawa
539b81e03a fixed #31987 zend-multibyte in ZTS. 2005-02-19 14:33:41 +00:00
81ef9ee5ee ChangeLog update 2005-02-18 01:36:34 +00:00
Marcus Boerger
c17d3dbbb7 - A little optimization to prevent problems when trying to reimplement an
interface inherited from an interfaces that was just implemented......
2005-02-17 21:05:04 +00:00
Marcus Boerger
c88da2bd92 - No C++ ruleZ here 2005-02-17 20:54:56 +00:00
Marcus Boerger
82ccc25113 - Actually we must do this in two steps: 1st resize the table and set all
interfaces, 2nd implement the interfaces
2005-02-17 20:49:56 +00:00
Marcus Boerger
02c35975c0 - Incrementation is done elsewhere 2005-02-17 20:28:46 +00:00
Marcus Boerger
a7e4f84c5d - Fix windows build (funny MS compiler) 2005-02-17 20:15:40 +00:00
foobar
640bc001e5 - Compile fix for systems without int32_t typedef 2005-02-17 04:44:52 +00:00
0992be8577 ChangeLog update 2005-02-14 01:39:25 +00:00
Marcus Boerger
a57b6bad69 - Be more gracious in reflection API 2005-02-13 23:04:49 +00:00
Marcus Boerger
e3a5c9f1d7 - Fix doc comment handling 2005-02-13 13:50:48 +00:00
b0ca477655 ChangeLog update 2005-02-13 01:38:06 +00:00
Marcus Boerger
6159f69023 - Bugfix #30682 (autoconversion from false/true to 0/1 missing in case of
static property default value)
2005-02-12 16:38:47 +00:00
33347d3264 ChangeLog update 2005-02-12 01:32:51 +00:00
Marcus Boerger
a29f5391db - Cleanup foreach handling 2005-02-11 22:26:45 +00:00
a29e968e1e ChangeLog update 2005-02-11 01:37:02 +00:00
foobar
378817d367 - Fixed bug #31920 (zend_strtod.c error: conflicting types for 'int8_t') 2005-02-10 22:19:32 +00:00
Dmitry Stogov
5764d6f41b Fixed bug #30407 (Strange behaviour of default arguments) 2005-02-10 11:45:24 +00:00
d8ad6ff49b ChangeLog update 2005-02-08 01:35:38 +00:00
Dmitry Stogov
c91218ae8a Fixed bug introduced with foreach() optimization patch 2005-02-07 17:54:58 +00:00
Dmitry Stogov
625e06f454 Fixed FE_RESET/FE_FETCH bug.
Now FE_RESET instruction takes jump-address from itself, not from the following FE_FETCH instruction.
2005-02-07 16:44:00 +00:00
Dmitry Stogov
fc96c7f7fa foreash($a as $key => $val) optimization
Removed temorary array creation on each iteration.
2005-02-07 16:09:54 +00:00
Marcus Boerger
2d13dd0ef0 - Remove part of the cleanup which causes a problem with unnormal code
like tests/lang/040.phpt
# However there is a memleak introduced somewhen after august 04 for such
# code now, 5.0 and 4.3 are fine though.
2005-02-07 15:22:38 +00:00
149d9e8407 ChangeLog update 2005-02-07 01:33:17 +00:00
Zeev Suraski
17537ac500 Correct fix for #28804 2005-02-06 23:51:59 +00:00
ba9e818d57 ChangeLog update 2005-02-06 01:43:36 +00:00
Marcus Boerger
662cd8262e - Cleanup foreach statement 2005-02-05 14:01:59 +00:00
9321218742 ChangeLog update 2005-02-05 01:34:50 +00:00
Hartmut Holzgraefe
d88c2b18d4 added some missing zend_[declare|update]_property_...() convenience
functions for bool, double and binary safe string data
2005-02-04 20:24:21 +00:00
443dcdbb60 ChangeLog update 2005-02-04 01:34:25 +00:00
foobar
77ee4950dd - Fixed bug #28804 (ini-file section parsing pattern is buggy). 2005-02-03 03:01:56 +00:00
foobar
91962aafad ws fix 2005-02-03 02:58:21 +00:00
4d0f0d308f ChangeLog update 2005-02-03 01:33:55 +00:00
Stanislav Malyshev
3925337a55 Fix #31720 Invalid object callbacks not caught in array_walk() (patch from Antony Dovgal) 2005-02-02 10:36:02 +00:00
Stanislav Malyshev
d38eed95ea test for Bug #31720 2005-02-02 10:31:53 +00:00
Dmitry Stogov
fd4fe1c8d3 Fixed bugs #29767 and #31683 (__get and __set methods must not modify property name). 2005-02-02 07:19:22 +00:00
24a834dfa4 ChangeLog update 2005-02-02 01:33:27 +00:00
Stanislav Malyshev
1088e28dfa Fix debug_trace with eval (patch from Antony Dovgal) 2005-02-01 19:05:56 +00:00
Stanislav Malyshev
13cd138683 test for eval debug_backtrace bug 2005-02-01 19:03:50 +00:00
38775706eb ChangeLog update 2005-02-01 01:33:19 +00:00
Marcus Boerger
0bb81ce1d6 - Add ReclectionClass:hasProperty(), ReflectionClass::hasConstant()
to complete api (johannes@php.net)
2005-01-31 22:56:01 +00:00
c73882617e ChangeLog update 2005-01-29 01:38:40 +00:00
Marcus Boerger
0236e31313 - Fix severity (found by johannes) 2005-01-28 20:24:20 +00:00
51ca0e7bbb ChangeLog update 2005-01-26 01:42:26 +00:00
foobar
601140cbe9 New versions of glibc support a RTLD_DEEPBIND flag to dlopen. The
effect of this flag when loading a "foo.so" with undefined symbols is
that the search that symbol starts at foo.so and its dependencies
*before* the loading process' global symbol table.

This is an effective workaround for symbol namespace collisions between
various modules and the libraries on which they depend (where fixing the
respective modules or libraries is not possible e.g. due to API
constraints).

(By: Joe Orton)
2005-01-25 13:08:05 +00:00
Marcus Boerger
82193adc09 - Bugfix #26229 (getIterator() segfaults when it returns arrays or scalars) 2005-01-25 10:40:51 +00:00
Marcus Boerger
14e54cdc1e - Fix dependency 2005-01-25 10:39:49 +00:00
Marcus Boerger
ccca7df1ea - Use correct freeing (thx Dmitry) 2005-01-25 10:07:52 +00:00
838ab371d9 ChangeLog update 2005-01-25 01:34:05 +00:00
Marcus Boerger
3cf4eae4aa - Second and last part of #30725 fix 2005-01-24 20:02:55 +00:00
Marcus Boerger
5206e9c9cf - Allow getIterator() to fail 2005-01-24 19:18:37 +00:00
Marcus Boerger
be86e1696e - Add new test 2005-01-24 19:16:06 +00:00
8839b8b3ec ChangeLog update 2005-01-23 01:36:14 +00:00
foobar
af1f60e601 - Compile fix for systems without uint32_t typedef 2005-01-22 20:28:17 +00:00
Marcus Boerger
1d5c13bdad - Fix #31651 (ReflectionClass::getDefaultProperties segfaults with arrays.) 2005-01-22 12:23:01 +00:00
Andi Gutmans
8838c0f860 - Two new API calls for Derick (retreive CV name and value) by Dmitry 2005-01-22 02:29:18 +00:00
1c0479f3f9 ChangeLog update 2005-01-21 01:36:01 +00:00
foobar
2c65e09a4b - Revert the weird change of ZEND_STRS() macro and use the correct
ZEND_STRL() macro.
# ZEND_STRS was changed to be same as ZEND_STRL..someone on crack? :)
2005-01-20 02:02:09 +00:00
aaf344e642 ChangeLog update 2005-01-20 01:35:55 +00:00
foobar
20be664666 - Fixed bug #29183 (Undefined symbol zend_check_private with Solaris CC) 2005-01-19 01:46:26 +00:00
57463e1509 ChangeLog update 2005-01-19 01:34:40 +00:00
Marcus Boerger
406e85a8d8 - Fix memleak 2005-01-19 00:55:56 +00:00
Dmitry Stogov
57a0c3e159 Fixed patch for bug #31478 (SegFault/Memory Leak with empty()) 2005-01-18 12:01:31 +00:00
Dmitry Stogov
30445fb661 Fixed bug #28444 (Cannot access undefined property for object with overloaded property access). 2005-01-18 09:05:39 +00:00
5089dc049a ChangeLog update 2005-01-18 01:36:51 +00:00
Ilia Alshanetsky
9839614829 Fixed bug #30726 (-.1 like numbers are not being handled correctly). 2005-01-18 00:29:43 +00:00
foobar
37d820b03f - Fixed bug #31444 (Memory leak in zend_language_scanner.c) 2005-01-17 17:20:56 +00:00
78306883e2 ChangeLog update 2005-01-16 01:34:48 +00:00
0bea91bbcb ChangeLog update 2005-01-15 01:33:59 +00:00
Andi Gutmans
4908642c8c - Unload on MAC OS X (shouldn't be a reason not to) 2005-01-15 00:11:20 +00:00
Dmitry Stogov
72d02269a9 Restore behavior of $str["str"]. (Now $str["str"] is equivalent to $str[0] again) 2005-01-14 09:01:22 +00:00
0d6b05eb8d ChangeLog update 2005-01-14 01:36:11 +00:00
Dmitry Stogov
ce0884c287 Additional fix for fix of bug #29883 2005-01-13 08:49:06 +00:00
10cba41a70 ChangeLog update 2005-01-13 01:35:42 +00:00
Dmitry Stogov
6fa37163f2 Fixed bug #31098 (isset false positive) 2005-01-12 09:18:31 +00:00
c13ec603b8 ChangeLog update 2005-01-12 01:35:50 +00:00
Moriyoshi Koizumi
e5786084e1 - Test renaming 2005-01-11 21:57:01 +00:00
Moriyoshi Koizumi
9b77de63ed - Fix bug #31436 (isset() incorrectly returns true in dereference of a wrong type) 2005-01-11 21:53:11 +00:00
Moriyoshi Koizumi
357b0c34b6 - Fix bug #31478 (segfault with empty()) 2005-01-11 17:17:48 +00:00
0e8b1d6864 ChangeLog update 2005-01-11 01:35:48 +00:00
Rasmus Lerdorf
2a3ca10a61 Fix OSX DL_UNLOAD macro and actually use it to make shared extensions
work on OSX.
2005-01-10 21:57:30 +00:00
foobar
a96507c1ec - Added missing header sections. 2005-01-10 14:57:36 +00:00
41f1e96817 ChangeLog update 2005-01-10 01:35:59 +00:00
foobar
4589cef5e1 - Added AC_ZEND_C_BIGENDIAN macro (as requested by Andi) 2005-01-10 01:33:29 +00:00
foobar
a139dbf9cc - Fix outside-source-tree builds. Always include generated header files
with #include <some_header.h> to make sure the correct file is used.
2005-01-09 21:05:06 +00:00
foobar
2da8b014af MFB: - Rationalize code a bit 2005-01-09 16:18:39 +00:00
85f9f047cf ChangeLog update 2005-01-04 01:36:40 +00:00
Stanislav Malyshev
52ffca0b27 Fix the following nasty bug:
- if compile bails out from the middle of compiling, current_buffer is not restored
- if current_buffer is not null, yy_switch_to_buffer will do: *yy_c_buf_p = yy_hold_char; on
the next request
- which would lead to memory corruption on next request
2005-01-03 10:01:03 +00:00
33cd288edc ChangeLog update 2005-01-03 01:37:14 +00:00
Ilia Alshanetsky
ea7b61dfe5 Fixed bug #31371 (highlight_file() trims new line after heredoc). 2005-01-02 23:53:43 +00:00
c1e5e2c74c ChangeLog update 2004-12-31 01:36:44 +00:00
foobar
4cf9d27072 - Fixed bug #28930 (PHP sources pick wrong header files generated by bison) 2004-12-30 15:18:24 +00:00
foobar
69eec3f3b9 MFB_4_3: Quote macro names in AC_DEFUN() 2004-12-30 07:08:39 +00:00
69b2401099 ChangeLog update 2004-12-28 01:35:50 +00:00
Zeev Suraski
6b1f070907 MFB 2004-12-27 18:53:27 +00:00
Marcus Boerger
7be33a225e - Need to unmangle the class name here 2004-12-27 15:13:26 +00:00
Dmitry Stogov
beaff87d50 "Undefined variable: %s" noticies were fixed to use one space 2004-12-27 13:43:26 +00:00
Marcus Boerger
03af7c8abc - More proto/error message fixes 2004-12-27 13:32:22 +00:00
Marcus Boerger
4b80deed8e - Small fixlet (by Tony) 2004-12-27 11:41:45 +00:00
Marcus Boerger
8c7bd30a7b - Add ReflectionClass::hasMethod() (thanks to Johannes S.) 2004-12-25 16:27:27 +00:00
4deaf7e243 ChangeLog update 2004-12-25 01:35:07 +00:00
Dmitry Stogov
f91088459b New sarbage collector's bug was fixed (the behavior should be the same as in PHP_5_0) 2004-12-24 09:00:29 +00:00
Dmitry Stogov
e986a1f47e "Undefined variable: %s" noticies were fixed to be compatible with PHP_5_0 2004-12-24 08:24:55 +00:00
287dc7a32b ChangeLog update 2004-12-22 01:36:38 +00:00
61bf7a23ce ChangeLog update 2004-12-21 01:34:54 +00:00
foobar
20fce0ba3e - Use correct header files (in c99 compliant way). uint32_t is preferred. 2004-12-21 01:07:24 +00:00
foobar
4157e50c00 Better fix for endian compile problems. 2004-12-20 20:37:45 +00:00
95467a3a25 ChangeLog update 2004-12-18 01:35:26 +00:00
Andi Gutmans
235e6c0afe - Fixed Bug #30562 Segmentation fault with __call() 2004-12-17 22:24:51 +00:00
Derick Rethans
4394c6f441 - MF43: Fixed strtod for Irix and some other strange platform 2004-12-17 13:17:32 +00:00
3f835d67ba ChangeLog update 2004-12-17 01:36:38 +00:00
Derick Rethans
1c23efeff4 - MF43: Make it compile on HPUX on Itanium 2 2004-12-16 22:22:51 +00:00
Derick Rethans
16c6679125 - MF43: Fixed bug #31107 (strtod on solaris9/intel) 2004-12-16 13:06:58 +00:00
foobar
ce742b08b0 - Fix typo (avaliable -> available). (bug #28725) 2004-12-16 12:34:32 +00:00
Derick Rethans
2689533db9 - MF43: Fixed bug #31110 and #31111 (Zend/zend_strtod.c problems) 2004-12-16 10:38:48 +00:00
5d2b6c784e ChangeLog update 2004-12-16 01:35:24 +00:00
89fac1e1e2 ChangeLog update 2004-12-15 01:51:40 +00:00
Derick Rethans
c0edc48a08 - MFH: Fixed compile error related to bug #28605.
#- But it does not *fix* bug #28605.
2004-12-14 08:43:01 +00:00
b952c194f6 ChangeLog update 2004-12-14 01:33:41 +00:00
Derick Rethans
d91a531d2e - Added "G" modifier to ini setting number format. 2004-12-13 09:09:06 +00:00
8208e517f8 ChangeLog update 2004-12-11 01:33:25 +00:00
c861ce463d ChangeLog update 2004-12-08 01:32:56 +00:00
Dmitry Stogov
5b18b931d0 Fixed bug #30904 (segfault when recording soapclient into session). 2004-12-07 07:46:12 +00:00
e32da28bd5 ChangeLog update 2004-12-07 01:31:57 +00:00
Stanislav Malyshev
11ae876f34 add test 2004-12-06 16:08:08 +00:00
Stanislav Malyshev
9e9c193e1b port fix for #30998: Crash when user error handler returns false on amd64 2004-12-06 15:50:27 +00:00
Dmitry Stogov
7c83c4e418 Fixed bug #30922 (reflective functions crash PHP when interfaces extend themselves) 2004-12-06 11:53:30 +00:00
ecac37514c ChangeLog update 2004-12-02 01:33:36 +00:00
Ilia Alshanetsky
4c5d71917e MFB: Removed extra space that causes problems for some compilers. 2004-12-01 18:52:13 +00:00
Derick Rethans
9c14e2235c - Fixed MacOSX compilation (Patch by Christian) 2004-12-01 15:05:02 +00:00
Dmitry Stogov
ec36f7dc69 Fixed bug #29883 (isset gives invalid values on strings). 2004-12-01 14:02:35 +00:00
8bc100cdae ChangeLog update 2004-12-01 01:32:00 +00:00
5f949d21c2 ChangeLog update 2004-11-30 01:33:45 +00:00
Derick Rethans
ebca90f075 - MFH: Revert Joe's work around a bug in GCC patch as it breaks too many things. 2004-11-29 09:32:15 +00:00
2ec1f4d16a ChangeLog update 2004-11-26 01:33:14 +00:00
75ab06e855 ChangeLog update 2004-11-25 01:33:25 +00:00
Marcus Boerger
520097b065 - Fix Bug #30856 (ReflectionClass::getStaticProperties segfaults) 2004-11-24 19:56:54 +00:00
867517fa5d ChangeLog update 2004-11-18 01:34:33 +00:00
Stanislav Malyshev
e9003696bd fix crash 2004-11-17 12:06:27 +00:00
22519a360a ChangeLog update 2004-11-17 01:37:20 +00:00
Derick Rethans
ccc7c3b48e - Make this compile for the Mac again 2004-11-16 07:48:25 +00:00
c224f6fba2 ChangeLog update 2004-11-16 01:36:15 +00:00
Derick Rethans
4916f58540 - Fixed bug #30779 (Compile of Zend/zend_strtod.c fails on Sparc) 2004-11-15 19:26:45 +00:00
48fe8cf7bc ChangeLog update 2004-11-15 01:36:53 +00:00
Marcus Boerger
95ff205e6c - Bugix #30783: Apache crash when using ReflectionFunction::getStaticVariables() 2004-11-14 18:01:44 +00:00
e52d178674 ChangeLog update 2004-11-10 01:49:49 +00:00
Andrei Zmievski
44468214b5 Revert inadvertent commit. 2004-11-09 20:59:02 +00:00
Andrei Zmievski
c2f8c1a79b .dylib extension are Mach-O shared libraries that meant for linking
against. Loadable modules (aka bundles) can have any extension, so we
should probably stick with .so

http://fink.sourceforge.net/doc/porting/shared.php?phpLang=en#lib-and-mod
2004-11-09 20:58:24 +00:00
890afc455c ChangeLog update 2004-11-06 01:51:41 +00:00
808243230b ChangeLog update 2004-11-05 01:36:27 +00:00
Edin Kadribasic
9c754364a6 Added zend_strtod.* to the build 2004-11-04 02:05:36 +00:00
Edin Kadribasic
5675c50dc2 Make zend_strtod compile on windows 2004-11-04 02:04:39 +00:00
adfebe8c6f ChangeLog update 2004-11-04 01:32:26 +00:00
Moriyoshi Koizumi
47dec40bd5 - Add entry for zend_strtod.c in belief that this is still active. 2004-11-04 00:13:08 +00:00
Moriyoshi Koizumi
dbf2c8abd5 - Don't show grep outputs 2004-11-03 23:25:33 +00:00
Derick Rethans
e612284ea4 - Fixed bug #30630: Added a BSD based strtod function that is
locale-independent.
2004-11-03 23:13:32 +00:00
Moriyoshi Koizumi
ae78d7d4bf - Checks for Darwin'ish systems that uses Mach-O, which apparently doesn't
support weak symbol aliasing at this time.
2004-11-03 23:05:18 +00:00
Marcus Boerger
fcbd8c4f99 - Trying to invoke function not methot here 2004-11-03 21:18:44 +00:00
Marcus Boerger
63b288c464 - Fix invokeargs() with static methods 2004-11-03 21:11:48 +00:00
Dmitry Stogov
9fb0e11de5 Fixed "isset() and the new VM" bug. 2004-11-03 07:11:49 +00:00
e16f0c6996 ChangeLog update 2004-11-03 01:38:35 +00:00
Sebastian Bergmann
9a92e31cdd Patch by Joe Orton <jorton@redhat.com>. 2004-11-02 13:10:37 +00:00
8ee7205c78 ChangeLog update 2004-11-01 01:55:54 +00:00
Marcus Boerger
41b87ab486 - Add ReflectionFunction::invokeArgs(array)
- Add ReflectionMethod::invokeArgs(obj, array)
2004-10-31 15:30:53 +00:00
Sebastian Bergmann
e1a941b486 Invokation -> Invocation 2004-10-31 10:19:53 +00:00
d64c25ce2e ChangeLog update 2004-10-31 00:52:50 +00:00
Marcus Boerger
4b10a2562a Bump version (as discussed with Andi) 2004-10-30 22:56:59 +00:00
Marcus Boerger
9d7cba9db0 - Be consistent and use names as keys (found by johannes) 2004-10-30 19:53:25 +00:00
Marcus Boerger
260fb777e2 - Bump API version 2004-10-30 19:27:42 +00:00
Marcus Boerger
c5a9a5a284 - Change zend_object_handlers->get_method() to allow aggregation for internal classes 2004-10-30 19:11:37 +00:00
Marcus Boerger
4fd5931e70 - New architecture needs one more dependency 2004-10-30 13:48:29 +00:00
Marcus Boerger
8bf02ee681 - Fix protos 2004-10-30 10:18:10 +00:00
5a54f79283 ChangeLog update 2004-10-30 00:46:12 +00:00
Andi Gutmans
b86cdbbddb - For Ilia:
- MFH: Fixed bug #30572 (crash when comparing SimpleXML attribute to a boolean).
- Hope this works well. I will MFH tomorrow if no one complains.
2004-10-29 00:55:11 +00:00
11e64bafbc ChangeLog update 2004-10-29 00:48:12 +00:00
Dmitry Stogov
64baaf8f7f --without-lines changed to --with-lines 2004-10-28 06:48:59 +00:00
Andi Gutmans
72558f2673 - Fix typo 2004-10-28 01:19:33 +00:00
4d5fd77412 ChangeLog update 2004-10-28 00:35:35 +00:00
Andi Gutmans
657e5d0fbc - Oops missed this one 2004-10-27 20:13:59 +00:00
Andi Gutmans
a4dff681c8 - Revert Fixed bug #30228 (crash when comparing SimpleXML attribute to a boolean).
- Need to discuss where the real problem is.
2004-10-27 18:15:03 +00:00
Andi Gutmans
47a4a96d23 - Tiny fixes 2004-10-27 18:08:56 +00:00
Andi Gutmans
a904c1dabc - Improve comments, docs, code... 2004-10-27 17:58:46 +00:00
dc8078b191 ChangeLog update 2004-10-27 00:36:13 +00:00
Andi Gutmans
6a16f3eb1d - Patch from Andrey Hristov:
I have cooked a small patch which allows is_subclass_of() the accept
not only an object as first parameter but a string as well. When string
is passed the function checks whether the class specified is subclass of
the second parameter
class a{}
class b{} extends a{}
is_subclass_of("a", "a") //false
is_subclass_of("b", "a") //true
currently only objects are allowed as first parameter
2004-10-26 23:25:05 +00:00
Ilia Alshanetsky
bb928e70a7 Fixed bug #30228 (crash when comparing SimpleXML attribute to a boolean). 2004-10-26 22:38:34 +00:00
aeac86458c ChangeLog update 2004-10-24 00:36:26 +00:00
Andi Gutmans
f4be622502 - Add missing file 2004-10-23 07:30:18 +00:00
4727b2dd11 ChangeLog update 2004-10-23 00:35:20 +00:00
Andi Gutmans
e86edc5f1b - Nuke another two files 2004-10-22 22:01:34 +00:00
Andi Gutmans
e50a6fde11 - Commit new VM
- Old one is tagged as PRE_NEW_VM_GEN_PATCH
- Still doing work so more commits to come. Don't complain (yet) :)
2004-10-22 21:42:14 +00:00
Andi Gutmans
fd92acac4f - Fix crash (MFB PHP5_0) 2004-10-22 01:55:39 +00:00
7889c7b97e ChangeLog update 2004-10-22 00:35:53 +00:00
54aa881075 ChangeLog update 2004-10-21 00:37:45 +00:00
Andi Gutmans
abd42847b1 - If object handles are equal then save the comparison of properties in
- the == operator.
2004-10-20 17:57:28 +00:00
d2f6707429 ChangeLog update 2004-10-19 00:36:32 +00:00
Anantha Kesari H Y
d608f1a0e0 including zend_compile.h for NetWare as NetWare uses MetroWerks Code warrior compiler which does not allow declarations of following kind before defining the types.
extern struct _zend_arg_info first_arg_force_ref[2];
2004-10-18 12:06:57 +00:00
5573922f0f ChangeLog update 2004-10-17 00:35:52 +00:00
Andi Gutmans
f2c7379ca7 - One more test (WS) 2004-10-16 23:17:58 +00:00
Andi Gutmans
30ff6d2836 - WS fix to test commit 2004-10-16 23:16:50 +00:00
Anantha Kesari H Y
c3dbe168fb Fix for 30457 2004-10-16 09:28:45 +00:00
82dfe6f07e ChangeLog update 2004-10-15 00:36:38 +00:00
Marcus Boerger
b52ab41ca7 - Allow to omit object/classname in get_parent_class() which makes it
compatible with the signature and behavior of get_class()
2004-10-14 07:26:04 +00:00
d06579e714 ChangeLog update 2004-10-14 00:49:13 +00:00
Andi Gutmans
3e382a7d06 - Don't allow access modifiers in interfaces. Explicitly stating public
- should also be disallowed but we don't have a way to detect it today.
2004-10-13 01:04:08 +00:00
cce41cb736 ChangeLog update 2004-10-13 00:37:00 +00:00
Marcus Boerger
0c40e2a06e Bug #30381 Strange results with get_class_vars() 2004-10-12 22:19:43 +00:00
Marcus Boerger
a4c387508e - Fix visibility in get_class_vars() and get_class_methods()
# Still there is a problem/error in the executor, i'll have a look
2004-10-12 11:01:08 +00:00
Marcus Boerger
0f9b3de234 - Fix set_exception_handler
# unsettign with '' never worked so we use NULL now which is much better
# because it matches the the return NULL in case no handler was defined
# and can't lead to problems with wrong string operations.
2004-10-12 09:13:20 +00:00
7f9f359105 ChangeLog update 2004-10-11 00:36:26 +00:00
e38fe93975 ChangeLog update 2004-10-09 00:36:00 +00:00
Marcus Boerger
f71644b480 - Revert automatic pass arg_info
# We need to find a better solutions to prevent havy extension writer probs
2004-10-08 22:17:32 +00:00
Andi Gutmans
f9aef18c86 - Fix BC break with default in switch() having to be at the end. 2004-10-08 18:50:00 +00:00
Anantha Kesari H Y
7ab517bcbf explicitly including sys/select.h as NetWare LibC sys/types.h does not include sys/select.h implicitly as other LibC 2004-10-08 07:43:41 +00:00
d8cd7e848d ChangeLog update 2004-10-07 00:49:15 +00:00
Marcus Boerger
ca6558a406 - Fix Bug #30344 2004-10-06 21:23:18 +00:00
f63340acba ChangeLog update 2004-10-06 00:35:43 +00:00
Marcus Boerger
f916d603ef - Add arginfo ZEND_ARG_SEND_AUTOMATIC which lets the compiler automatically
determine whether pass by ref is possible or pass by value is needed.
# This is usefull when functions take array or string parameters as
# expressions. In such a case force by ref is not applicable and the
# executor would copy the variable unnecessarily as soon as it is at least
# once referenced.
2004-10-05 18:36:46 +00:00
Dmitry Stogov
6414c8606a Test files are fixed. 2004-10-05 13:29:43 +00:00
Dmitry Stogov
0f99c02070 Test files are fixed. 2004-10-05 13:21:06 +00:00
Dmitry Stogov
3d383e45dc Fixed unset() bug that was introduced with CV optimization patch 2004-10-05 09:09:18 +00:00
Dmitry Stogov
3f35c6a6cc Added test cases for CV optimization patch 2004-10-05 06:53:39 +00:00
01fda447c5 ChangeLog update 2004-10-05 00:35:08 +00:00
Andi Gutmans
11bcaedfc8 - Rename delete_global_variable() to zend_delete_global_variable() 2004-10-04 20:17:06 +00:00
Andi Gutmans
db507dd153 - Commit the variable fetch optimization.
- Extensions which delete global variables need to use new special function
- delete_global_variable() (I'm about to rename it) to remove them.
- Will post to internals@ or via commit messages if there's anything else.
2004-10-04 19:54:35 +00:00
Marcus Boerger
4b395a168b - Bugfix #27798 2004-10-04 08:59:29 +00:00
Marcus Boerger
3d29cd72d5 - Add new test 2004-10-04 08:58:47 +00:00
d4c7c87afb ChangeLog update 2004-10-03 00:35:29 +00:00
Marcus Boerger
1e3aa55b1e - Add new test 2004-10-02 14:22:52 +00:00
Marcus Boerger
6762c9f0e0 - Add new test 2004-10-02 14:13:35 +00:00
4bd7b33e1b ChangeLog update 2004-10-02 00:35:13 +00:00
Marcus Boerger
2f5985335b - Add makefile fragment which simplifies working on the executer 2004-10-01 22:32:15 +00:00
1507a660b1 ChangeLog update 2004-10-01 00:34:08 +00:00
Andi Gutmans
1a4bfd6561 - Small improvement to DVAL_TO_ZVAL macro 2004-09-30 18:36:03 +00:00
464ebb7843 ChangeLog update 2004-09-30 00:41:24 +00:00
Marcus Boerger
aa247a3276 - MFB (synch correctly not only for one problem) 2004-09-29 20:57:07 +00:00
Marcus Boerger
0ec6eb7aad - Refix the fix
# This somehow got lost and was then readded by Andi in 1.258 at the wrong
# position. Obviously we need to separate the argument first and convert it
# afterwards as done in 5.0.*.
2004-09-29 20:24:35 +00:00
Andi Gutmans
5efcdba2d0 - Move bench.php to Zend/ 2004-09-29 17:08:46 +00:00
f890909ac4 ChangeLog update 2004-09-29 00:34:42 +00:00
Marcus Boerger
e39f3f3f48 Simplify/Optmize magic method calls (__get/__set/__call/__clone/__destruct) 2004-09-28 22:55:22 +00:00
Andi Gutmans
3e2b49ab5b - Return the warning until we check if we can change the type of str.len 2004-09-28 19:46:57 +00:00
Marcus Boerger
b907755e3c - publish reflection_class_factory() as zend_reflection_class_factory() 2004-09-28 19:06:15 +00:00
31902806a8 ChangeLog update 2004-09-28 00:34:17 +00:00
Marcus Boerger
3fec3a916b - Make internally used properties read-only and fix default properties 2004-09-27 22:24:57 +00:00
Marcus Boerger
f775ea0ae3 - Fix memeleak 2004-09-27 22:06:10 +00:00
Marcus Boerger
8d587ce308 - Declare properties 2004-09-27 21:25:12 +00:00
Andi Gutmans
84f248761f - Document zend_vm_use_old_executor() for Derick. 2004-09-27 18:21:39 +00:00
Marcus Boerger
9291a7fa98 Fix Reflection_Class to ReflectionClass in docu/messages 2004-09-27 09:11:40 +00:00
Marcus Boerger
920b706142 - Fix warning 2004-09-27 09:03:40 +00:00
Marcus Boerger
04fe8184f8 - Fix warnings 2004-09-27 09:01:18 +00:00
Marcus Boerger
16c1f0ae74 - Fix warning
# What's the reason _zvalue_value.str.len is int instead of uint/zend_uint?
2004-09-27 08:50:41 +00:00
Marcus Boerger
8e09f92917 - Fix warning 2004-09-27 08:46:12 +00:00
Marcus Boerger
4bcd155285 - Fix warnings 2004-09-27 08:43:05 +00:00
Marcus Boerger
01af2c3f73 Fix warnign 2004-09-27 08:33:11 +00:00
Andi Gutmans
4a03738225 - Use zval_ctor_func() for wrapper and update the prototype to void 2004-09-27 07:04:36 +00:00
Andi Gutmans
67fc0f2bfe - Make zval_copy_ctor() return void like dtor(). No one ever checks the
- return value which is SUCCESS always.
2004-09-27 02:29:01 +00:00
23ecf60129 ChangeLog update 2004-09-27 00:34:15 +00:00
Marcus Boerger
e0ec7c981e - Fix build 2004-09-26 22:19:57 +00:00
Andi Gutmans
f17aa81edc - Apply Thies and Sterling's patch which doesn't call ctor/dtor functions
- for types which don't require it (BOOL/NULL/LONG/DOUBLE)
- Breaks serialization!!!
2004-09-26 20:03:54 +00:00
0ec80db02a ChangeLog update 2004-09-25 00:35:03 +00:00
Anantha Kesari H Y
b82a18c8da selectively avoiding module cleanup code for apache 1 build and removing a duplicate code 2004-09-24 15:40:22 +00:00
Dmitry Stogov
aeab5f8723 Fixed specializer bug. 2004-09-24 06:06:39 +00:00
8799fed634 ChangeLog update 2004-09-24 00:34:15 +00:00
Andi Gutmans
f82ed13625 - Commit new VM architecture. This one allows people (aka Derick) to
- ask the engine to use function handler mode. Will update the README
- about that.
2004-09-23 21:43:32 +00:00
Ilia Alshanetsky
a4df842974 Fixed test. 2004-09-23 20:08:07 +00:00
Marcus Boerger
e13eb1d6c0 Bugfix # 30209 2004-09-23 18:37:53 +00:00
Andi Gutmans
97b796d0aa - Commit synthetic benchmark 2004-09-23 16:42:21 +00:00
Anantha Kesari H Y
b04db9d9e0 Reverted the NetWare Specific Stack limit related patches as asked by Andi 2004-09-23 06:23:36 +00:00
921cdf4fb9 ChangeLog update 2004-09-23 00:34:44 +00:00
Anantha Kesari H Y
b66e7aec62 NetWare specific stack limit checks 2004-09-22 15:51:56 +00:00
Anantha Kesari H Y
5af07c3c8b Aligned the ifdef NETWARE blocks to first column. 2004-09-22 14:31:21 +00:00
Anantha Kesari H Y
8eb7503078 Stack limit will be checked while executing the script 2004-09-22 14:20:19 +00:00
Anantha Kesari H Y
b0b1a57fc4 To avoid redefinition (of free, alloca etc.) compilation errors in Zend. 2004-09-22 13:42:32 +00:00
Anantha Kesari H Y
8478f5e38e When Apache is unloaded, it calls dlclose on all the PHP extensions
that are loaded in memory. In the case of Apache 1.3, this call is blocking indefinitely. As a work around, this call is bypassed for Apache 1.3 build on NetWare only. This means that none of the loaded PHP extensions are unloaded. They will have to be manually unloaded before re-loading the Apache 1.3 again.
2004-09-22 13:29:08 +00:00
Anantha Kesari H Y
ff40ceab56 defined ZEND_PATHS_SEPERATOR to semicolon for NetWare 2004-09-22 12:49:08 +00:00
Anantha Kesari H Y
4fe1927183 enabled macros to call the proper LibC functions 2004-09-22 12:45:28 +00:00
Dmitry Stogov
480f4e3565 Specializer was updated with executor's fixes. 2004-09-22 08:45:21 +00:00
Dmitry Stogov
3009a073b0 Fixed bug #29566 (foreach/string handling strangeness (crash)). 2004-09-22 07:14:26 +00:00
Dmitry Stogov
81a5af36a1 Fixed bug in fix for bug #29707 2004-09-22 06:32:19 +00:00
24961c73ac ChangeLog update 2004-09-22 00:34:14 +00:00
Andi Gutmans
d9252aa1ea - Fix for bug #29707 2004-09-21 22:09:22 +00:00
4017713fc2 ChangeLog update 2004-09-20 00:34:18 +00:00
Marcus Boerger
d0cfb7d3fd Bugfix #30146 (ReflectionProperty->getValue() requires instance for static property) 2004-09-19 11:54:08 +00:00
Marcus Boerger
43d9ade92b Bugfix #30148 (ReflectionMethod->isConstructor() fails for inherited classes) 2004-09-19 11:25:39 +00:00
db7af4d8f0 ChangeLog update 2004-09-18 00:35:27 +00:00
Stanislav Malyshev
3755c03291 fix crash when dtor is fialing on shutdown 2004-09-17 10:13:52 +00:00
1775e980ea ChangeLog update 2004-09-17 00:33:44 +00:00
Andi Gutmans
16d79b79d6 - Add test for bug #27669 2004-09-16 19:36:56 +00:00
Sebastian Bergmann
6ccbb6b51b ZTS fix. 2004-09-16 05:43:29 +00:00
Andi Gutmans
d8efe626b5 - Fix bug #27669 (Dmitry).
Fixes:
<?
        class A
        {
                function hello()
                {
                        echo "Hello World\n";
                }
        }
        $y[0] = 'hello';
        A::$y[0]();
?>
2004-09-16 00:40:38 +00:00
5fc85f6c61 ChangeLog update 2004-09-16 00:33:09 +00:00
Ilia Alshanetsky
da136e6106 MFH: Fixed a bug causing ".123" * "90" and alike to return a 0. 2004-09-15 13:41:45 +00:00
Derick Rethans
c68f4bde30 - Windows support strcoll too. 2004-09-15 12:28:55 +00:00
41c4fd66d9 ChangeLog update 2004-09-14 00:33:34 +00:00
Stanislav Malyshev
29fec3febc Antony Dovgal's error message improvement - #27290 2004-09-13 10:41:39 +00:00
49b1208120 ChangeLog update 2004-09-12 00:33:34 +00:00
Derick Rethans
4bae5cb4d0 - MFB: Added the sorting flag SORT_LOCALE_STRING to the sort() functions which
makes them sort based on the current locale. (Derick)
2004-09-11 14:22:35 +00:00
b3a32e6d21 ChangeLog update 2004-09-11 00:33:56 +00:00
Andi Gutmans
3e201ac281 - Resolve undefined behavior (joe at redhat) 2004-09-11 00:23:20 +00:00
Andi Gutmans
ab52308356 - This one fixes rather strange problem - ZE allows multiple declarations of the same class constant.
- It could be a minor BC break, but I'm sure it's a bug. (Antony Dovgal aka tony2001)
2004-09-10 06:13:13 +00:00
0a72ea8d70 ChangeLog update 2004-09-10 00:35:29 +00:00
Andi Gutmans
db07396fe8 - Revert API bump 2004-09-09 17:08:25 +00:00
Andi Gutmans
3d438cc06a - Commit VM explanation. 2004-09-09 17:04:12 +00:00
Andi Gutmans
ec4f64344c - Recommit 2004-09-09 16:52:24 +00:00
Andi Gutmans
6bd3c36a53 - Recommit:
- Check signature of magic methods
  - Register __get/__set/__call for internal classes
2004-09-09 16:51:45 +00:00
Andi Gutmans
8aed222d93 - Recommit:
- Bump the API number to work around this major breakage.
2004-09-09 16:50:04 +00:00
Andi Gutmans
96ab56e146 - Roll back VM commit 2004-09-09 16:47:22 +00:00
Marcus Boerger
7bfb397338 - Drop namespace relict 2004-09-09 13:29:08 +00:00
Marcus Boerger
be24e2455c - Check signature of magic methods
- Register __get/__set/__call for internal classes
2004-09-09 09:51:43 +00:00
Derick Rethans
7d2302830f - Bump the API number to work around this major breakage. 2004-09-09 07:41:32 +00:00
Dmitry Stogov
f6206c5050 We will use CALL dispatch method for compilers other then GCC. It is more safe. 2004-09-09 06:05:11 +00:00
ea4dbef1b7 ChangeLog update 2004-09-09 00:34:46 +00:00
Andi Gutmans
f20f992ddd - Fix the fix. 2004-09-09 00:15:39 +00:00
Andi Gutmans
2e286e7374 - Fix bug #28054 by preventing printing out bogus information in backtrace
when in error handler (still doesn't know all information but at least
  it's not bogus)
2004-09-08 23:46:37 +00:00
Andi Gutmans
8eb8850c90 - Some architectural changes:
a) We specialize opcodes according to op_type fields. Each opcode has to
    be marked with which op_type's it uses.
 b) We support different execution methods. Function handlers, switch()
    and goto dispatching. goto seems to be the fastest but it really
    depends on the compiler and how well it optimizes. I suggest playing
    around with optimization flags.

- Warning: Things might break so keep us posted on how things are going.
  (Dmitry, Andi)
2004-09-08 22:14:12 +00:00
882a4c4d2c ChangeLog update 2004-09-07 00:34:14 +00:00
Marcus Boerger
dd5652e4c1 - Fix handling of exceptions in dtors 2004-09-06 19:13:33 +00:00
85a9b2283f ChangeLog update 2004-09-06 00:35:08 +00:00
Zeev Suraski
85a36e2bc3 Fix reverse dependency 2004-09-05 22:40:35 +00:00
895b4a2825 ChangeLog update 2004-09-05 00:32:42 +00:00
Andi Gutmans
d7422e3821 - Don't destroy object when calling overloaded cast method in
- zend_parse_parameters()
2004-09-04 17:03:45 +00:00
69a4d841a9 ChangeLog update 2004-09-03 00:34:03 +00:00
Sebastian Bergmann
aab4ad1a8e Fugbix typo. 2004-09-02 17:27:44 +00:00
322ed7d092 ChangeLog update 2004-08-31 00:32:38 +00:00
Marcus Boerger
8867010b22 Add some information about array overloading 2004-08-30 18:48:52 +00:00
Stanislav Malyshev
4f68f3774c fix crash #29893 2004-08-30 08:57:40 +00:00
22f796e55f ChangeLog update 2004-08-30 00:33:06 +00:00
Marcus Boerger
0eaa26fc31 String offset starts with 0, fix isset($str[$len]) 2004-08-29 19:15:08 +00:00
Marcus Boerger
1e708a5aeb Bugfix #29882 isset crashes on arrays 2004-08-29 13:28:03 +00:00
48335493eb ChangeLog update 2004-08-28 00:34:05 +00:00
Andi Gutmans
ec3aac1e86 - Fix leak report for 0 byte allocations (Dmitry) 2004-08-27 16:49:14 +00:00
7280d303f4 ChangeLog update 2004-08-27 00:32:42 +00:00
Marcus Boerger
ec4f576cb3 Enforce semantics: Classes cannot extend Interfaces 2004-08-26 22:59:25 +00:00
Marcus Boerger
08c344c293 Drop doubled check 2004-08-26 22:32:38 +00:00
Marcus Boerger
690b45afaa - Bugfix #29828 Interfaces no longer work 2004-08-26 22:25:55 +00:00
b8ed424ed3 ChangeLog update 2004-08-26 00:33:05 +00:00
Andi Gutmans
709c5bd2d5 - Add interface_exists() and differentiate between classes and interfaces
(Andrey Hristov)
2004-08-25 00:41:43 +00:00
d800816f94 ChangeLog update 2004-08-25 00:33:08 +00:00
Marcus Boerger
87187da066 - Add missing brackets 2004-08-24 18:47:18 +00:00
ce84626a7f ChangeLog update 2004-08-24 00:36:07 +00:00
Marcus Boerger
efbfaec0a3 - Drop unused variable 2004-08-23 20:58:48 +00:00
Marcus Boerger
b7a8297bc1 - Boost up __autoload() calls by caching the lookup 2004-08-23 20:57:40 +00:00
Andi Gutmans
51501e8de0 - Improve performance of switch() 2004-08-23 20:16:35 +00:00
d6dd2c26fa ChangeLog update 2004-08-22 00:33:22 +00:00
20db6b2dcb ChangeLog update 2004-08-21 00:33:39 +00:00
Sara Golemon
b5547442e5 Bugfix#29777 Some compilers don't like // style comments 2004-08-21 00:00:16 +00:00
Sara Golemon
5a81efa31f Fix compile 2004-08-20 23:53:59 +00:00
9b09af54d9 ChangeLog update 2004-08-20 00:34:05 +00:00
Andi Gutmans
a36e7b0ab1 - Cleanup 2004-08-19 20:42:20 +00:00
Andi Gutmans
57ba9b8ccf - Second wave of garbage removal. 2004-08-19 20:29:04 +00:00
Andi Gutmans
edb7c7d4f5 - Stop using garbage. Please let me know if you find any bugs resulting
- of this patch (very likely). (Dmitry, Andi)
2004-08-19 20:03:06 +00:00
Marcus Boerger
308081cd11 - Implement #29728: Reflection API Feature: Default parameter value.
. ReflectionParameter::isDefaultValueAvailable()
  . ReflectionParameter::getDefaultValue()
2004-08-19 07:42:02 +00:00
Marcus Boerger
5e1a0f4c0c - Nedd to work on copy 2004-08-19 07:16:02 +00:00
77319b779a ChangeLog update 2004-08-19 00:32:47 +00:00
Marcus Boerger
35fec42377 - Show default value of optional parameters of user defined functions. 2004-08-18 23:07:12 +00:00
Andrei Zmievski
f60dc4699f Forgot to turn off debugging. 2004-08-18 18:10:31 +00:00
Andrei Zmievski
fe5c131a0d Re-add my patch for .ini variable access. 2004-08-18 16:58:20 +00:00
d3cf46ca1d ChangeLog update 2004-08-17 00:33:20 +00:00
Marcus Boerger
041d23d7b6 - Fix bug #29447: Reflection API issues 2004-08-16 08:48:25 +00:00
be00addf85 ChangeLog update 2004-08-16 00:33:22 +00:00
Marcus Boerger
ce8331f9a5 Remove unnecessary check 2004-08-15 15:48:32 +00:00
8840250fa0 ChangeLog update 2004-08-15 00:34:53 +00:00
Marcus Boerger
e45270dd2f Add missing check 2004-08-14 19:02:17 +00:00
e5cb1fa4e4 ChangeLog update 2004-08-13 00:33:48 +00:00
Andi Gutmans
993f70c1d2 - Don't use magic numbers 2004-08-12 05:54:11 +00:00
Andi Gutmans
de25255b6d - Significantly improve performance of foreach($arr as $data). (Marcus) 2004-08-12 05:41:01 +00:00
fb9b63de23 ChangeLog update 2004-08-12 00:37:05 +00:00
Ilia Alshanetsky
bf8a6a07d8 MFH: Fixed bug #29607 (highlighting code with HEREDOC produces invalid
output).
2004-08-11 22:38:32 +00:00
Marcus Boerger
be022a813f More meaningfull error message 2004-08-11 20:19:49 +00:00
Derick Rethans
4894978500 - Added missing defines.
#- I did say the patch was for 4.3 ;-)
2004-08-11 06:11:07 +00:00
a13424db00 ChangeLog update 2004-08-11 00:33:29 +00:00
Ilia Alshanetsky
60b6ac053e Fixed bug #29606 (php_strip_whitespace() prints to stdout rather then
returning the value).
2004-08-10 22:16:46 +00:00
Marcus Boerger
51505045e6 - Fix warnings 2004-08-10 07:01:54 +00:00
79187b1360 ChangeLog update 2004-08-08 00:34:33 +00:00
Andi Gutmans
f3d6620f00 - Commit Derick's patch for allowing Zend to use regular libc memory
- allocation functions. Mainly useful in conjunction with tools such as
- valgrind which enables us to find bugs we might not find with the
- current memory managers boundary protection.
2004-08-07 00:45:34 +00:00
b7b1440330 ChangeLog update 2004-08-06 00:33:59 +00:00
Ilia Alshanetsky
b1c45f61ad Eliminate unneeded variable. 2004-08-05 00:44:30 +00:00
91e6402230 ChangeLog update 2004-08-05 00:35:34 +00:00
Marcus Boerger
90e4fd0a0a - Fix bug #29523 (ReflectionParameter::isOptional() is incorrect) 2004-08-04 22:47:56 +00:00
46baa28aaf ChangeLog update 2004-08-04 00:34:06 +00:00
Marcus Boerger
ae2d914580 Update 2004-08-03 17:10:40 +00:00
Marcus Boerger
c4508c377e Add new test 2004-08-03 16:59:53 +00:00
Marcus Boerger
7bfc91c3a9 - Fixed Bug #29505 get_class_vars() severely broken when used with arrays 2004-08-03 16:59:25 +00:00
a27afba6ff ChangeLog update 2004-08-03 00:34:47 +00:00
Marcus Boerger
84b90d6803 - Add methods to check parameter count 2004-08-02 23:10:29 +00:00
Marcus Boerger
a0ff48dbd3 - Change to use memcmp instead of strcmp 2004-08-02 22:41:34 +00:00
Andi Gutmans
57d57237cf - Fix typo 2004-08-02 17:36:45 +00:00
Marcus Boerger
dc7cb19993 - Remove all for now
# - the optimization part can be done in apc or compareable products
# - NULL can be reintroduced later when needed
2004-08-02 16:38:09 +00:00
Marcus Boerger
5f0433db83 MFB: Enforce protocol on magic methods/functions 2004-08-02 08:27:57 +00:00
Ilia Alshanetsky
d746343928 A gentler (performance wise) allocation of buffer for temp variables. 2004-08-02 02:35:01 +00:00
dc2552a3ac ChangeLog update 2004-08-02 00:33:46 +00:00
a701436da6 ChangeLog update 2004-07-31 00:34:20 +00:00
Andi Gutmans
d7c839d54f - More ptr_stack optimizations and cleanups 2004-07-30 21:00:37 +00:00
Andi Gutmans
138ef9a43e - Improve performance by inlining zend_ptr_stack_n_push(). var_args can
usually not be inlined by compilers.
2004-07-30 20:16:40 +00:00
381adeadff ChangeLog update 2004-07-30 00:33:59 +00:00
Marcus Boerger
dcf007c6da - Increase performance of *sort() and some internal sort operations.
# This patch increases the performance of small arrays/hashes by up to ~15%
# The performance increase during the performance talk :-)
2004-07-29 19:18:46 +00:00
Sara Golemon
d96e7a170c Revert goto opcode 2004-07-29 17:45:31 +00:00
Sara Golemon
37acb31c1a &tmp and label are the same thing, don't free it till we're done with it. 2004-07-29 16:49:59 +00:00
Sara Golemon
8c844fdde3 Plug some memory leaks and promote unknown label to E_ERROR.
If someone tries to jump to a non-existant label execution really
shouldn't try to carry on.
2004-07-29 16:36:00 +00:00
Sara Golemon
5865b3680a Add goto operator by popular request. 2004-07-29 15:23:47 +00:00
c7f22e5aca ChangeLog update 2004-07-29 00:36:09 +00:00
Wez Furlong
b1667b579b Fix: ini entries for dl()'d modules now work under ZTS
Side-effect: avoid possible crashes when multiple threads load/unload
modules and mess with the global hash table.
2004-07-28 22:56:01 +00:00
Andi Gutmans
7d80f82e70 - Fix MAC OSX to always use native DSO loading 2004-07-28 19:05:40 +00:00
8059173ad3 ChangeLog update 2004-07-28 00:34:08 +00:00
Marcus Boerger
e9549a4f9c - Be specific about visibility 2004-07-27 16:21:56 +00:00
Wez Furlong
03e298ec47 Fix two possible crashes. Latter is unlikely unless you are doing scary
things, but former looks nasty.
2004-07-27 01:33:25 +00:00
f5ddb60764 ChangeLog update 2004-07-27 00:34:31 +00:00
Stanislav Malyshev
46455027fc quick fix for #29382 2004-07-26 17:12:17 +00:00
7223a1bc88 ChangeLog update 2004-07-26 00:32:29 +00:00
Marcus Boerger
7e914380c9 - Show visibility errors (try to fix #29354) 2004-07-25 18:20:33 +00:00
Marcus Boerger
f5cf052225 - Fix bug #29368 : The destructor is called when an exception is thrown from the constructor 2004-07-25 17:25:44 +00:00
Marcus Boerger
0cd2da0309 - Execute destructors earlier (Florian Schaper, fschaper at intux org) 2004-07-25 07:14:49 +00:00
Marcus Boerger
40bf10319b - Add ReflectionParameter::isOptional() to test whether a parameter is
optional and also show this information in export.
2004-07-25 07:06:53 +00:00
Marcus Boerger
2b9c90efd3 - Add optional parameters $filename and $lineno to ErrorException
constructor to allow overwriting automatically retrieved information.
# It may be reasonable to delete the trace in case that feature is used.
2004-07-25 07:05:48 +00:00
49e31e4b0f ChangeLog update 2004-07-24 00:32:58 +00:00
Marcus Boerger
5ff2111a59 Fix 0 Byte leak after alloca to emalloc change 2004-07-23 07:13:54 +00:00
b5a926f78d ChangeLog update 2004-07-23 00:36:00 +00:00
Zeev Suraski
34b00ca22a Fix bug in handling of protected properties 2004-07-22 11:54:27 +00:00
6789bcfed2 ChangeLog update 2004-07-22 00:34:33 +00:00
Edin Kadribasic
d42361630f Fixed build 2004-07-21 22:13:31 +00:00
Marcus Boerger
08fa8849b2 - Fixded #29291: get_class_vars() return names with NULLs 2004-07-21 18:36:51 +00:00
a03447092d ChangeLog update 2004-07-21 00:34:28 +00:00
Moriyoshi Koizumi
182e93ab6e - Add safe_pemalloc() 2004-07-20 21:55:57 +00:00
Marcus Boerger
446cc107b8 - Fixed bug 28895 again (long live the dead) 2004-07-20 18:22:31 +00:00
Zeev Suraski
8a153add90 Fix prototypes 2004-07-20 10:43:19 +00:00
Zeev Suraski
7601484612 Add descriptions 2004-07-20 09:24:22 +00:00
Stanislav Malyshev
7bdc6d4bf4 add todo 2004-07-20 08:58:18 +00:00
6b2e7f941a ChangeLog update 2004-07-20 00:33:57 +00:00
Sebastian Bergmann
fb3c30574e Fix prototypes: Reflection_* -> Reflection*. 2004-07-19 19:17:32 +00:00
Sebastian Bergmann
045d395d4a Make ReflectionClass::getMethod() and ReflectionClass::getProperty() raise an ReflectionException instead of returning NULL on failure. 2004-07-19 19:14:10 +00:00
Sebastian Bergmann
32e125e2b8 Do not use contracted forms. 2004-07-19 19:02:11 +00:00
Stanislav Malyshev
d84702836a export INI parser 2004-07-19 16:32:24 +00:00
Stanislav Malyshev
e000da960b __set and __get will be called not only when variable doesn't exist but also when it's
invisible
2004-07-19 14:26:53 +00:00
Andi Gutmans
f17aba3062 - Bump API number due to empty_string change 2004-07-19 14:19:21 +00:00
Andi Gutmans
56f8195fe5 - Nuke empty_string. It is a reminanent from the time where RETURN_FALSE()
used to return "" and not bool(false). It's not worth keeping it because
  STR_FREE() and zval_dtor() always have to check for it and it slows down
  the general case. In addition, it seems that empty_string has been abused
  quite a lot, and was used not only for setting zval's but generally in
  PHP code instead of "", which wasn't the intention. Last but not least,
  nuking empty_string should improve stability as I doubt every place
  correctly checked if they are not mistakenly erealloc()'ing it or
  calling efree() on it.
  NOTE: Some code is probably broken. Each extension maintainer should
  check and see that my changes are OK. Also, I haven't had time to touch
  PECL yet. Will try and do it tomorrow.
2004-07-19 07:19:50 +00:00
fa958958c3 ChangeLog update 2004-07-19 00:35:14 +00:00
Wez Furlong
af9c0b84cd No point allocating 0 bytes 2004-07-18 09:55:02 +00:00
394a0aea16 ChangeLog update 2004-07-17 00:32:34 +00:00
Marcus Boerger
86d46f7cc1 - Speed up by making null/false/true reserved word which allows to drop
an opcode (FETCH_CONSTANT) for every usage.
2004-07-16 06:50:57 +00:00
Marcus Boerger
381a3b234f Bugfix #28464 catch() does not catch exceptions by interfaces 2004-07-16 06:39:50 +00:00
Ilia Alshanetsky
6dd2613d7b MFB: Fixed bug #28800 (strings beginning with "inf" improperly converted). 2004-07-16 02:03:25 +00:00
10d903343f ChangeLog update 2004-07-16 00:33:02 +00:00
Andi Gutmans
eb2e53be99 - Improve performance of zend_alloc by stopping the size from being a bit
- field.
2004-07-15 22:59:54 +00:00
Marcus Boerger
1cdf7e66f4 - Add new class ErrorException to encapsulate errors in exceptions 2004-07-15 22:21:36 +00:00
Marcus Boerger
1916223883 - Fix prototype 2004-07-15 19:41:22 +00:00
5a9875f293 ChangeLog update 2004-07-15 00:33:10 +00:00
Stanislav Malyshev
d673ec0184 be consistent with write_dimension 2004-07-14 09:04:13 +00:00
Stanislav Malyshev
28d72ce2fd fix #28957 2004-07-14 09:01:58 +00:00
12c826c2e7 ChangeLog update 2004-07-14 00:33:30 +00:00
Andi Gutmans
c18badbfbf - 5.0.1-dev 2004-07-13 19:56:49 +00:00
Marcus Boerger
1ea22c9004 Bugfix #29116 Zend constant warning uses memory after free (jdolecek at NetBSD dot org) 2004-07-13 19:22:11 +00:00
Andi Gutmans
399e2ca69f - Roll PHP 5.0.0 2004-07-13 19:05:31 +00:00
196259d334 ChangeLog update 2004-07-13 00:32:43 +00:00
Ilia Alshanetsky
a8996a8ac6 Fixed bug #29086 & #28064 (PHP crashes on extremly long scripts). 2004-07-12 17:47:29 +00:00
Andi Gutmans
334ddd1248 - Convert zend_class_entry -> zend_class_entry * 2004-07-12 16:38:45 +00:00
ed6ebf011b ChangeLog update 2004-07-11 00:33:01 +00:00
Jon Parise
d46f8078f5 DragonFly BSD is derived from FreeBSD and requires the same floating point
precision fix.
2004-07-10 19:29:01 +00:00
Andi Gutmans
e5cfb1d05c - Better stability during premature shutdown of request startup 2004-07-10 07:46:17 +00:00
ea5dc3d577 ChangeLog update 2004-07-06 00:33:32 +00:00
Andi Gutmans
82b4d74fd4 - Disable zend_mm for 5.0.0 2004-07-05 17:06:41 +00:00
beb3674b7a ChangeLog update 2004-07-04 00:32:20 +00:00
Andi Gutmans
c3e9cd9c91 - Should fix mem leak with ZEND_MM. I made this change a while ago and
- rolled it back but I don't remember why. Please test!
2004-07-03 00:16:39 +00:00
ae5301c5d5 ChangeLog update 2004-07-02 00:32:17 +00:00
Ilia Alshanetsky
2ba0608e48 Do not use alloca() where it can be easily abused by the users.
# This probably should go into reflection code as well.
2004-07-01 16:28:32 +00:00
f125cb60cc ChangeLog update 2004-06-26 00:32:25 +00:00
Wez Furlong
5aa568254a export zend stream functions for zend extensions under windows 2004-06-25 12:55:11 +00:00
2f94546824 ChangeLog update 2004-06-25 00:32:18 +00:00
Sara Golemon
a4032b68c6 Ease off on severity of new error (Using Resources as array offsets) 2004-06-24 16:35:34 +00:00
ca14c9b1af ChangeLog update 2004-06-24 00:32:21 +00:00
Sara Golemon
56b153390b BugFix #28879 Inconsistent behavior between explicit and implicit array creation.
Changes:

Throw E_WARNING "Illegal offset type" when explicitly creating
array elements with objects, arrays, or resorces as indexes.
This matches implicit creation w/ obj/arr indices.

Throw E_WARNING "Resource ID#%ld used as offset, casting to integer (%ld)"
when implicitly creating array with resource as index. (BC)
2004-06-23 23:20:44 +00:00
0e6607aa51 ChangeLog update 2004-06-20 00:32:22 +00:00
Sebastian Bergmann
f0903895c1 Reflection_* -> Reflection*. Patch by Timm Friebe. 2004-06-19 16:52:04 +00:00
8586e6505f ChangeLog update 2004-06-19 00:32:22 +00:00
Sara Golemon
2f7c5d30b5 Another typo in converting array index doubles to long. 2004-06-18 18:33:46 +00:00
George Schlossnagle
6d182a8456 fix for 28213.
class_name and call_type should be reinitialized on every loop iter.
2004-06-18 17:34:58 +00:00
cf8a8a3189 ChangeLog update 2004-06-18 00:32:27 +00:00
Sara Golemon
96a8b63865 String length in parse_parameters should be int 2004-06-17 18:23:47 +00:00
c9908cf81d ChangeLog update 2004-06-16 00:32:45 +00:00
Marcus Boerger
4fec06587b #28789: ReflectionProperty getValue() fails on public static members 2004-06-15 20:39:49 +00:00
313c153274 ChangeLog update 2004-06-15 00:32:13 +00:00
Marcus Boerger
afc5a6145c Need {} here 2004-06-14 19:09:42 +00:00
d0c4b3d3ec ChangeLog update 2004-06-11 00:34:13 +00:00
Marcus Boerger
4da11644de - Require a single white-space char after /** to start a doc comment that
way we prevent /*** from becoming a doc comment (as requested Derick).
2004-06-10 13:38:31 +00:00
Marcus Boerger
c756609658 Add missing declaration 2004-06-10 12:32:09 +00:00
Marcus Boerger
eb0cb6f6ed Small code layout change 2004-06-10 12:11:16 +00:00
Marcus Boerger
eefdd0ea49 Do not require NEWLINE at start of doccomment 2004-06-10 11:40:34 +00:00
Marcus Boerger
e8e4ff0aa1 Bugfix #28699: Reflection api bugs 2004-06-10 11:28:29 +00:00
622f7679f7 ChangeLog update 2004-06-10 00:32:42 +00:00
Marcus Boerger
4213153365 Fix Bug #28694 ReflectionExtension::getFunctions() crashes PHP 2004-06-09 19:25:42 +00:00
3fc91aff97 ChangeLog update 2004-06-08 00:32:15 +00:00
Andi Gutmans
0bdbbd379e - Go back to -dev (Shouldn't need another RC) 2004-06-07 18:57:34 +00:00
Andi Gutmans
6f47156228 - Roll RC3 2004-06-07 14:23:45 +00:00
1b80f44cf1 ChangeLog update 2004-06-07 00:32:20 +00:00
Stefan Esser
fb5cb59035 Fixed Zend Function Destructor to use correct TSRM handle. 2004-06-06 08:37:12 +00:00
ff5fca9aa0 ChangeLog update 2004-06-06 00:33:20 +00:00
Marcus Boerger
a6276a2414 Fix #28641: Instance of Interface 2004-06-05 14:59:21 +00:00
89ee6b45ad ChangeLog update 2004-06-04 00:34:01 +00:00
Andi Gutmans
02032ccf9f - Prepare for RC3RC2 2004-06-03 08:17:15 +00:00
40b17e6c5c ChangeLog update 2004-06-03 03:03:17 +00:00
Andi Gutmans
f7ca8821b2 - Don't use ZEND_MM in Windows 2004-06-02 15:05:10 +00:00
Stanislav Malyshev
176f6d8e6e fix incdec - make value's refcount non-zero when passing to
write_property - otherwise __set caller cleanup could kill it.
2004-06-02 12:48:19 +00:00
c59be44de1 ChangeLog update 2004-06-02 00:32:03 +00:00
Andi Gutmans
2e19f82a7f - If user error handler returns "false" then we relay to the built in error
handler
2004-06-01 11:45:46 +00:00
95910aa26c ChangeLog update 2004-06-01 00:32:37 +00:00
Marcus Boerger
9b8eee74d9 Refcount must not be set separatley again. 2004-05-31 21:49:52 +00:00
Marcus Boerger
20b60f49d9 Add missing initialization 2004-05-31 21:46:00 +00:00
Marcus Boerger
21315c08b7 Add missing initialization 2004-05-31 21:43:43 +00:00
Marcus Boerger
374ac86e33 #28589: Segfault in Reflection API 2004-05-31 21:38:01 +00:00
ba2b5623c3 ChangeLog update 2004-05-29 00:32:22 +00:00
Andrei Zmievski
915a990330 Allow user-defined error handlers to indicate whether default error
handler should be re-invoked, by returning true or false.
2004-05-28 17:28:33 +00:00
Marcus Boerger
0ef420a71e Prevent possible problems with illegal properties 2004-05-28 08:55:10 +00:00
Derick Rethans
877ecb3c81 - Make the default mask for user defined error handlers include ALL errors,
including E_STRICT.
2004-05-28 08:08:56 +00:00
7489718769 ChangeLog update 2004-05-28 00:31:45 +00:00
Andi Gutmans
e51105c6a6 - Back to RC3-dev until we roll final 2004-05-27 15:03:46 +00:00
Andi Gutmans
bca3e30484 - Fix problem with exceptions returning from include(). (Dmitry) 2004-05-27 11:59:58 +00:00
Andi Gutmans
5a9d648f1f - RC3RC1 2004-05-27 11:39:35 +00:00
e3e7ef94a5 ChangeLog update 2004-05-27 00:32:10 +00:00
Wez Furlong
6f5c0992a3 Fix leak on systems where alloca isn't really alloca. 2004-05-26 22:19:44 +00:00
Andrei Zmievski
81efd46186 Avoid unnecessary and silly copying of constant name when registering. 2004-05-26 21:01:37 +00:00
Andi Gutmans
97dee3a8c2 - Fix memory manager problem 2004-05-26 20:55:16 +00:00
Sebastian Bergmann
2fbfcd7482 Update Reflection API class names. Whitespace fixes. 2004-05-26 07:00:39 +00:00
c50a4252cd ChangeLog update 2004-05-26 00:33:37 +00:00
Andi Gutmans
2917ff1e7d - Nuke unused decleration 2004-05-25 14:19:19 +00:00
Andi Gutmans
02884a08f5 - More fixes 2004-05-25 10:09:46 +00:00
Andi Gutmans
6704ab4b35 - Make fix compile. 2004-05-25 09:25:22 +00:00
Andi Gutmans
db90fc4c90 - Fix memory leak in mem cache in conjunction with Zend MM. How come no one
- noticed this? :)
2004-05-25 08:33:11 +00:00
9926a97e26 ChangeLog update 2004-05-24 00:32:46 +00:00
Andi Gutmans
0b0c5d3fac - Fix problem with object being destroyed more than once 2004-05-23 20:33:09 +00:00
Andi Gutmans
ef9878647d - Fix the following script (it crashed):
<?php
   class ErrorHandler {
     function __construct() {
       set_error_handler(array(&$this, 'handle'));
     }

     function __destruct() {
       restore_error_handler();
     }

     function handle($code, $msg, $file, $line, $locals) {
     }
   }

   new ErrorHandler();
?>
2004-05-23 20:27:32 +00:00
3d9c47eed0 ChangeLog update 2004-05-21 00:39:44 +00:00
Wez Furlong
3ec72d3ed9 Revert; obviously I missed the function at the bottom of the file... 2004-05-20 17:59:27 +00:00
Wez Furlong
892ec5f535 Export this, so extensions may throw their own exception objects that
they have already instantiated.
2004-05-20 17:41:09 +00:00
bd29f379e7 ChangeLog update 2004-05-19 00:34:15 +00:00
Marcus Boerger
c8e72410be - Need to operate on module pointer in hash table 2004-05-18 21:19:15 +00:00
Wez Furlong
d80297b251 Fix bug #28438: win32 build fails in non-zts mode 2004-05-18 20:14:54 +00:00
Stanislav Malyshev
da26db3054 Z_TYPE_P is for zvals 2004-05-18 16:13:57 +00:00
Wez Furlong
b949bfe651 Register according to the type specified by the module.
(Helps to fix dl() bug)
2004-05-18 15:26:13 +00:00