Commit Graph

5061 Commits

Author SHA1 Message Date
Marcus Boerger
1be624e7ba - MFH Sync vm generation with head
- Regenerate vm
2006-05-21 18:00:14 +00:00
Marcus Boerger
290ed55060 - MFH Improved error message 2006-05-20 21:02:44 +00:00
Marcus Boerger
cd4ab2f6fe - MFH Use correct version 2006-05-20 09:12:28 +00:00
Marcus Boerger
397c88ae74 - MFH Add new tests 2006-05-20 09:08:35 +00:00
Dmitry Stogov
cdb0ed7587 Fixed random crashes in ZTS mode becouse of uninitialized EG(modified_ini_directives). 2006-05-19 15:31:25 +00:00
Dmitry Stogov
14f6b9149d Optimized zend_try/zend_catch macroses (eliminated memcpy()) 2006-05-19 06:09:15 +00:00
Antony Dovgal
80d7ac0e9e there is no %v in 5.2 2006-05-18 21:24:04 +00:00
Antony Dovgal
557b7fbec5 fix tests 2006-05-17 20:13:05 +00:00
Marcus Boerger
9c8b47d15e - Fix oversight and drop E_STRICT in 5.x series 2006-05-17 19:07:45 +00:00
Antony Dovgal
6783be767a change argument name, it should be "object" not "property" 2006-05-17 14:28:21 +00:00
Ilia Alshanetsky
21724432de Fixed bug #35512 (Lack of read permission on main script results in
E_WARNING rather then E_ERROR).
2006-05-17 13:27:51 +00:00
Dmitry Stogov
be4c37919b Added test 2006-05-15 16:44:54 +00:00
Dmitry Stogov
963c7fa016 Optimized require_once/include_once (eliminated fopen() on second usage) 2006-05-15 15:31:27 +00:00
Dmitry Stogov
14cad8fdc3 Optimized shutdown sequence to iterate only over modified ini directives 2006-05-15 14:52:35 +00:00
Marcus Boerger
0c40fb7ef2 - Readd that E_RECOVERABLE_ERROR, dropping it is a bad idea 2006-05-14 18:50:02 +00:00
Marcus Boerger
3fd2c5e217 - Do not include E_RECOVERABLE_ERROR to the default mode E_ALL 2006-05-14 18:45:10 +00:00
Marcus Boerger
d45250a058 - MFH code layout for __toString() use in parameter parsing api 2006-05-13 10:37:45 +00:00
Derick Rethans
07d0f0cf01 - MFH: Tests for BC breaking changes. 2006-05-12 10:02:31 +00:00
Sebastian Bergmann
ec7b8e2b1c Bump version. 2006-05-12 05:36:09 +00:00
Marcus Boerger
b3c3c6de14 - Missing __toString() pieces 2006-05-12 00:21:00 +00:00
Antony Dovgal
7412202c43 no need to destroy the zval here 2006-05-11 22:41:37 +00:00
Marcus Boerger
7a5240e846 - MFH missing bits and pieces of the partial sync with head
# This time i added:
# ZEND_FE_RESET_VARIABLE
# ZEND_FE_RESET_REFERENCE
# and dapted parser,compiler,executor,interfaces to handle these flags
# their purpose is to be able to pass whetehr foreach is done by ref to
# the current() handler so that it can error out in case it is not capable
# to comply to the requested return signature/protocol/semantics (weyp).
2006-05-11 21:07:39 +00:00
Marcus Boerger
b636a534c1 - Drop second superflous zval_ptr_dtor in string arg parsing 2006-05-11 21:03:14 +00:00
Antony Dovgal
085e0fc51f fix segfault when passing objects where strings are expected 2006-05-11 15:10:36 +00:00
Antony Dovgal
bc4e9efef7 add new test 2006-05-11 14:18:34 +00:00
Marcus Boerger
38ff4bba17 - MFH Add missing ZEND_API declarations 2006-05-11 08:11:45 +00:00
Antony Dovgal
37ed02b199 change it to be consistent with the others 2006-05-10 22:57:50 +00:00
Marcus Boerger
288da2242e - Fix tests 2006-05-10 22:46:16 +00:00
Marcus Boerger
d76c516176 - Missing __ToString() sync 2006-05-10 21:13:22 +00:00
Marcus Boerger
f16bdce284 - Enforece rule of disallowing throw in __toString() 2006-05-10 21:12:48 +00:00
Marcus Boerger
0dacd6d5c0 - ze1 cleanup (bjori) /thx 2006-05-10 19:41:34 +00:00
Marcus Boerger
848c5c7695 - Missing __tostring() conversion snippets 2006-05-10 19:36:47 +00:00
Antony Dovgal
f7eec29f84 fix tests 2006-05-10 14:04:52 +00:00
Antony Dovgal
8a03fc5ef3 add missing parts of E_RECOVERABLE merge 2006-05-10 14:04:18 +00:00
Antony Dovgal
0f93228cb7 add missing ZEND_API to the implementation 2006-05-10 14:00:36 +00:00
Antony Dovgal
4f37b2f354 nuke extra semi-colon 2006-05-10 13:49:27 +00:00
Marcus Boerger
edfe649c6b - MFH Constructors in interfaces 2006-05-10 01:23:55 +00:00
Marcus Boerger
43217a3225 i- ZE1_compat tests are no longer necessary 2006-05-10 00:41:23 +00:00
Marcus Boerger
637a40423c - MFH as discussed
. zend_exception_get_default() -> zend_exception_get_default(TSRMLS_D)
  . zend_get_error_exception()   -> zend_get_error_exception(TSRMLS_D)
  . added E_RECOVERABLE_ERROR
  . added ZEND_TOSTRING_FUNC_NAME
  . added __tostring function cache to zend_class_entry
  . added ZEND_NAMED_ME
  . modified ZEND_ME_MAPPING to support method flags
  . added ZEND_MN
  . method entries now use prefix "zim_" instead of "zif_"
  . drop EG(ze1_compatibility_mode)
  . changed cast handler, now without (int should_free):
    typedef int (*zend_object_cast_t)(zval *readobj, zval *retval, int type TSRMLS_DC);
  . changed get_iterator, now receives whether value is by ref:
    zend_object_iterator *(*get_iterator)(zend_class_entry *ce, zval *object, int by_ref TSRMLS_DC);
  . added zend_objects_store_add_ref_by_handle
  . added zend_objects_store_del_ref_by_handle
  . convert_to_explicit_type(pzv, type)
2006-05-09 23:53:23 +00:00
Dmitry Stogov
ab5a8b2ae3 Fixed possible crash in highlight_string() (proper place) 2006-05-02 15:49:26 +00:00
Dmitry Stogov
8d1cc50067 Fixed ossible crash in highlight_string(). 2006-05-02 07:19:00 +00:00
Antony Dovgal
32872b157e there is no %v in 5_1 2006-04-20 22:49:20 +00:00
Dmitry Stogov
bdef85af21 Fixed bug #37138 (__autoload tries to load callback'ed self and parent) 2006-04-20 07:30:38 +00:00
Antony Dovgal
29254a477d fix #37062 (compile failure on ARM architecture)
if ARM is big endian - don't define IEEE_LITTLE_ENDIAN
2006-04-15 12:54:14 +00:00
Antony Dovgal
f233299f96 make it consistent with the other ones =) 2006-04-14 21:06:11 +00:00
Dmitry Stogov
67abcb58c3 Fixed bug #36513 (comment will be outputed in last line) 2006-04-13 13:48:28 +00:00
Dmitry Stogov
851801a795 Fixed test 2006-04-13 06:04:28 +00:00
Dmitry Stogov
f23d01ad4d Fixed bug #37046 (foreach breaks static scope) 2006-04-12 11:37:50 +00:00
Dmitry Stogov
6e762e648c Fixed bug #37002 (Have to quote literals in INI when concatenating with vars) 2006-04-12 09:51:54 +00:00
Marcus Boerger
6ea747d8e4 - MFH Iterators from overloaded objects are allowed to not have keys... 2006-04-10 23:16:29 +00:00
Marcus Boerger
6c89fd2d63 - MFH Coverity fix 49 2006-04-10 22:49:29 +00:00
Dmitry Stogov
64e7be9b5a Fixed possible crash in interactive mode 2006-04-10 12:26:53 +00:00
Dmitry Stogov
6624682dff MFH:
- Allowed storing NULL pointers in HashTable
- Optimized zend_hash_reverse_apply()
2006-04-07 10:06:21 +00:00
Andrei Zmievski
d288f66c7c Fix a bug that would not fill in the fifth argument to preg_replace()
properly, if the variable was not declared previously.
2006-04-06 21:10:45 +00:00
Antony Dovgal
e25a1dccac fix #36944 (strncmp & strncasecmp do not return false on negative string length) 2006-04-05 11:36:13 +00:00
Antony Dovgal
0fab5aacce fix compilation on AIX 2006-03-30 21:39:01 +00:00
Antony Dovgal
59b8592c8c fix bug #36898 (__set() leaks in classes extending internal ones)
Added:
ZEND_API void zend_object_std_init(zend_object *object, zend_class_entry *ce TSRMLS_DC)
ZEND_API void zend_object_std_dtor(zend_object *object TSRMLS_DC)

to initialize and destroy zend_object structs
2006-03-29 14:28:43 +00:00
Antony Dovgal
1fa58ec003 initialize bucket #0 with nulls (normally it shouldn't be used at all, but if it is - we don't want any memory issues, do we?) 2006-03-28 21:58:01 +00:00
Antony Dovgal
cfbcb43d63 fix #36897 (debug_print_backtrace() doesn't return void but array(0) {}) 2006-03-28 19:43:21 +00:00
Antony Dovgal
a93bd9d493 fix #36878 (error messages are printed even though an exception has been thrown) 2006-03-27 22:07:38 +00:00
Dmitry Stogov
cde55c9223 Fixed meory leak in case of unknown pragma 2006-03-27 08:09:18 +00:00
Marcus Boerger
041e7470b1 - Initialized callable_name if present 2006-03-23 13:14:55 +00:00
Dmitry Stogov
608c3207a6 Removed unreachable code 2006-03-20 15:13:41 +00:00
Dmitry Stogov
d82462485e FIX: For some reason SIGSEGV handler wasn't set, but was restoring. Now all SIGSEGV related code is commented. 2006-03-17 08:47:41 +00:00
Dmitry Stogov
c31c984365 Optimization of module unloading (temporary modules can be only in the end) 2006-03-17 08:34:16 +00:00
Dmitry Stogov
79983ce0ce Fix: incorrect string length passed 2006-03-15 14:12:26 +00:00
Dmitry Stogov
6f76b17079 Added E_STRICT warning in case of calling non-static method from incompatible context (this feature is staying for BC with php-4). 2006-03-15 11:12:45 +00:00
Dmitry Stogov
7865dfb5b8 Eliminated run-time constant fetching for TRUE, FALSE and NULL 2006-03-15 09:04:36 +00:00
Dmitry Stogov
056bea6de7 Fixed "zend_vm_gen.php --without-specializer" 2006-03-15 08:06:28 +00:00
Dmitry Stogov
9d6e4964a1 Fixed bug #36568 (memory_limit setting on win32 has no effect) 2006-03-14 14:19:00 +00:00
Dmitry Stogov
161ae714ae zend_hash_apply() doesn't use ZEND_HASH_APPLY_... macros 2006-03-14 11:24:45 +00:00
Dmitry Stogov
ad10a538ee Optimized cleanup loops on request shutdown 2006-03-13 11:13:42 +00:00
Ilia Alshanetsky
e7f6a3fab2 As per agreement during PDM, remove the E_STRICT deprecation notice from
"var".
2006-03-12 16:52:18 +00:00
Dmitry Stogov
ade3995a79 Fixed compatibility with ext/hash 2006-03-06 09:58:01 +00:00
Marcus Boerger
35ce5db25e - Add missing function for completeness 2006-03-05 16:12:24 +00:00
Dmitry Stogov
54adfc6fcf Fixed incorrect backtrace type ("::" instead of "->") for __set()/__get() 2006-03-03 12:06:29 +00:00
Dmitry Stogov
b32a78c4fa Remove "called at [(null):0]" from debug backtrace 2006-03-03 10:09:21 +00:00
Marcus Boerger
7addae5089 - MFH Use object handler get in the same way as the rest of the engine does 2006-03-02 00:45:28 +00:00
Marcus Boerger
3840e428bb - MFH Fix string-conversion and const updating 2006-03-01 17:21:04 +00:00
Marcus Boerger
f128dff1ff - Fix test 2006-03-01 17:19:22 +00:00
Marcus Boerger
2e37e86366 - MFH Argument parsing specifier 'C', which is necessary for SPL already 2006-02-27 22:23:21 +00:00
Marcus Boerger
5a69b29082 - Warning fixes by Steph 2006-02-26 10:57:00 +00:00
Marcus Boerger
941b0651dc - MFH: Function deprecation flag 2006-02-25 18:25:45 +00:00
Andrei Zmievski
c009a4f361 Fix a bug where the default value for function argument could be an
array with array (!) keys.
2006-02-23 18:06:47 +00:00
Marcus Boerger
f0d9ae46c3 - Fix method flag handling 2006-02-19 10:39:31 +00:00
Antony Dovgal
d43d090362 fix leak in zend_strtod() on big doubles
add new test
2006-02-14 22:10:55 +00:00
Andrei Zmievski
da30791861 MFH. 2006-02-07 00:33:13 +00:00
Antony Dovgal
a3b941642c init variables 2006-02-06 20:37:11 +00:00
Dmitry Stogov
38409e944c Fixed bug #36303 (foreach on error_zval produces segfault) 2006-02-06 11:45:56 +00:00
Marcus Boerger
647eafcb5d - MFH 2006-02-05 17:07:40 +00:00
Dmitry Stogov
b179e081ab Fixed bug #36268 (Object destructors called even after fatal errors) 2006-02-03 09:31:59 +00:00
Zeev Suraski
b73349dbe4 Fix possibility of a wrong element being deleted by zend_hash_del()
Thanks Stefan!
2006-02-01 01:01:05 +00:00
Marcus Boerger
77915bc208 - MFH 2006-01-25 22:03:18 +00:00
Marcus Boerger
b1cebf32e4 - MFH Fix issues with static method invocation 2006-01-22 22:14:32 +00:00
Dmitry Stogov
c447acf863 Fixed bug #36071 (Engine Crash related with 'clone') 2006-01-19 07:23:32 +00:00
Antony Dovgal
01e8d313c8 MFH: make sure ce_child is properly initialized 2006-01-18 21:06:47 +00:00
Ilia Alshanetsky
b6cb9d3ce5 Fixed bug #36046 (parse_ini_file() miscounts lines in multi-line values). 2006-01-17 19:56:25 +00:00
Dmitry Stogov
0f4302b872 Fixed bug #36037 (heredoc adds extra line number) 2006-01-17 09:39:57 +00:00
Dmitry Stogov
b8360c376b Fixed bug #36006 (Problem with $this in __destruct()) 2006-01-16 10:12:36 +00:00
Marcus Boerger
66cfc793a2 - Fix test 2006-01-14 15:53:37 +00:00
Marcus Boerger
add3c79a23 - Fixed bug #36011 2006-01-14 15:22:40 +00:00
Antony Dovgal
4972b45520 fix typo in the code and related tests 2006-01-06 20:55:14 +00:00
Andi Gutmans
864a2897df - More -> 2006 changes 2006-01-05 02:34:02 +00:00
Andi Gutmans
61e93ccfe8 - Update copyright notices to 2006 2006-01-04 23:53:05 +00:00
foobar
62b9a736bf MFH: oops 2006-01-01 13:27:13 +00:00
foobar
63e14480fc fix typo 2006-01-01 13:13:52 +00:00
Antony Dovgal
d7c1980a21 typofix 2005-12-26 23:58:42 +00:00
Dmitry Stogov
56d78654a3 Reverted invalid fix for bug #35785 2005-12-26 08:18:38 +00:00
Marcus Boerger
9a6a266b16 - MFH Fixed Bug #35785 (SimpleXML memory read error) 2005-12-23 20:32:15 +00:00
Dmitry Stogov
9c2ea13abc Fixed bug #35612 (iis6 Access Violation crash). (alacn dot uhahaa at gmail dot com) 2005-12-22 16:46:15 +00:00
Dmitry Stogov
ad90780930 Fixed memory leak 2005-12-22 09:16:11 +00:00
Marcus Boerger
eb99c74567 - MFH move zend_object_Value definition to zend_types.h 2005-12-20 21:37:52 +00:00
Marcus Boerger
af264f6f0d - MFH add Z_OBJVAL*() macros 2005-12-20 21:37:19 +00:00
Antony Dovgal
3782a4acf2 fix test description 2005-12-20 17:00:24 +00:00
Antony Dovgal
9255733c4f fix leak appearing when __autoload() throws an exception 2005-12-20 11:25:34 +00:00
Marcus Boerger
18a99796ad - MFH Fix Bug #35720 A final constructor can be overwritten 2005-12-17 15:51:52 +00:00
foobar
849a614275 - Fix test 2005-12-17 14:54:41 +00:00
Antony Dovgal
dfcc155c76 fix compile warning with Apache2 and Zend VM disabled
(someone forgot to do MFH)
2005-12-16 22:29:34 +00:00
Marcus Boerger
10f77a5d71 - Add/fix tests 2005-12-16 22:19:02 +00:00
Marcus Boerger
0cd997d79c - Simplify and synch is_callable_ex() with actual execution code
. Allow array($this, 'parent::method') for function 'pointers'
  . Spit out E_STRICT in case of erroneous use of function 'pointers'
2005-12-16 22:15:41 +00:00
Antony Dovgal
f7aec44aee MFH: use default colors to prevent any problems with existing php.ini 2005-12-13 22:32:30 +00:00
Ilia Alshanetsky
3ce27140dc Fixed bug #35655 (whitespace following end of heredoc is lost). 2005-12-13 20:55:42 +00:00
Marcus Boerger
882a9effe6 - Enforce termination to prevent possible SEGVs 2005-12-12 19:10:12 +00:00
foobar
379cd5a6df MFH:- Include timestamp for the leaks. (to make possible matching leaks with access_log entries) 2005-12-12 11:00:57 +00:00
Dmitry Stogov
599221036f Fixed bug #35612 (iis6 Access Violation crash) 2005-12-09 18:10:45 +00:00
Ilia Alshanetsky
3d4c1d6886 Improve fix for bug #35382 2005-12-08 03:09:14 +00:00
Antony Dovgal
6aba1816ee more typos fixed (thanks to Mike Naberezny for noticing these) 2005-12-05 20:06:33 +00:00
Antony Dovgal
4ce11c2a63 improve error messages 2005-12-05 13:39:52 +00:00
Dmitry Stogov
9ee0707cfa Fixed bug #35509 (string constant as array key has different behavior inside object) 2005-12-05 08:56:09 +00:00
Antony Dovgal
ca0d712c3c MFH: fix #35539 (typo in error message for ErrorException) 2005-12-04 11:47:00 +00:00
foobar
4bfba57f96 MFH 2005-12-03 00:00:55 +00:00
Marcus Boerger
e9f5066faa - MFH Be picky about names 2005-12-02 16:00:45 +00:00
Dmitry Stogov
916ad6c8f7 Fixed bug #35437 (Segfault or Invalid Opcode 137/1/4) 2005-12-01 12:50:58 +00:00
Dmitry Stogov
8768ab94b3 Fixed bug #34729 (Crash in ZTS mode under Apache) 2005-12-01 11:48:17 +00:00
Marcus Boerger
279e4f7219 - Reflection was moved into its own extension 2005-11-30 21:58:01 +00:00
Marcus Boerger
16177d63f2 - MFH Move reflection to its own extension
# As discussed with RM
2005-11-30 21:46:26 +00:00
Dmitry Stogov
0a5d10a5b9 Fixed bug #35373 (HP-UX "alias not allowed in this configuration") 2005-11-30 10:29:44 +00:00
Dmitry Stogov
02aad34c43 Fixed bug #35470 (Assigning global using variable name from array doesn't function) 2005-11-30 10:09:37 +00:00
Dmitry Stogov
14594953d2 Fixed bug #35393 (changing static protected members from outside the class, one more reference issue) 2005-11-28 14:33:03 +00:00
Ilia Alshanetsky
497fae9d1f Fixed bug #35411 (Regression with \{$ handling).
Fixed bug #35382 (Comment in end of file produces fatal error).
2005-11-27 06:39:31 +00:00
Ilia Alshanetsky
0b9f9de012 No longer dev 2005-11-26 21:03:44 +00:00
Marcus Boerger
46ae03d872 - MFH Fix bug #35406 eval hangs when evall'ed code ends with comment w/o newline 2005-11-26 13:11:26 +00:00
Rasmus Lerdorf
4e3cd72df5 Typo 2005-11-26 06:22:14 +00:00
Antony Dovgal
350aec954e MFH: ICC doesn't support __attribute__ for pointers 2005-11-25 12:25:05 +00:00
Marcus Boerger
fb81446ec9 - MFH Reflection class consts (not removing globals consts in 5.1*) (by Johannes) 2005-11-24 19:56:11 +00:00
Dmitry Stogov
a570981151 Fixed bug #35360 (exceptions in interactive mode (php -a) may cause crash) 2005-11-24 11:33:11 +00:00
Sebastian Bergmann
f5117c81b3 MFH: Add an additional field $frame['object'] to the result array of debug_backtrace() that contains a reference to the respective object when the frame was called from an object. 2005-11-24 05:07:28 +00:00
Antony Dovgal
794c2e8e5d change zend_read_property() to allocate property zval too 2005-11-23 18:51:44 +00:00
Antony Dovgal
1e93bb16e4 fix #35336 (crash on PDO::FETCH_CLASS + __set()) 2005-11-23 11:15:11 +00:00
Dmitry Stogov
36d6ddc241 Bug #33732 (Wrong behavior of constants in class and interface extending) 2005-11-23 09:26:43 +00:00
Ilia Alshanetsky
0d088689c0 Removed {} E_STRICT pending furher discussion, may be introduced later on. 2005-11-22 19:46:13 +00:00
Marcus Boerger
19ea8abd09 - MFH Fixed Bug #35286 tokenizer ext drops final comment (by greg) 2005-11-21 19:24:38 +00:00
Antony Dovgal
014729d00b MFH: make GCC happy and suppress the warning 2005-11-17 19:21:32 +00:00
Ilia Alshanetsky
b5c8fcb5fa Allow zend_parse_parameters to handle non-well formed integers, but raise
E_NOTICE in the process.
2005-11-17 00:19:23 +00:00
Ilia Alshanetsky
da0a76c561 {} to [] test fixes 2005-11-16 16:57:27 +00:00
Ilia Alshanetsky
9aeb125f4a By popular demand the {} message is now an E_STRICT. 2005-11-16 15:10:56 +00:00
Ilia Alshanetsky
aab9009deb Added depreciation notice for {} string offset access. 2005-11-16 14:55:21 +00:00
Dmitry Stogov
6b8bf38333 Fixed bug #35239 (Objects can lose references) 2005-11-16 11:52:27 +00:00
Dmitry Stogov
b58ed261d7 Allow "null" default value for arguments with array type hint 2005-11-15 16:49:40 +00:00
Derick Rethans
aa9ea59851 - Allow "= null" default for parameters with a class type-hint. 2005-11-15 15:59:49 +00:00
Dmitry Stogov
64931b62cc Allow recursive calls to __get/__set for different properties 2005-11-15 13:35:23 +00:00
Dmitry Stogov
a8c6b992b8 Fixed bug #35147 (__HALT_COMPILER() breaks with --enable-zend-multibyte) 2005-11-15 13:29:39 +00:00
Dmitry Stogov
5519008169 Fixed call to __destruct() for objects of classes delivered from internal ones those use zend_objects_store_put(obj, NULL, ... 2005-11-15 12:41:31 +00:00
Dmitry Stogov
9e1beb4f1c Fixed bug #35009 (ZTS: Persistent resource destruct crashes when extension is compiled as shared) 2005-11-07 12:24:55 +00:00
Marcus Boerger
83bdbe5b53 - Fix static check in zend_is_callable_ex()
- Fix/speedup zend_make_callable()
# Actually the ...STATIC... flag in zend_is_callable_ex() *must* go, too.
# We keep it for the moment to support old stuff and skip analyzing them
# in detail...
2005-11-03 23:45:18 +00:00
Marcus Boerger
a4bd0d6a25 - Add missing cases and checks 2005-11-02 20:30:13 +00:00
Sebastian Bergmann
02eb02d1ce MFH: Allow bison 2.1. 2005-11-01 10:31:56 +00:00
Dmitry Stogov
681405fc4a Fixed bug #35017 (Exception thrown in error handler may cause unexpected behavior) 2005-10-31 19:25:14 +00:00
Dmitry Stogov
b05b949a47 Fixed bug #34879 (str_replace, array_map corrupt negative array indexes on 64-bit platforms) 2005-10-28 14:46:30 +00:00
Dmitry Stogov
844cb82c45 $id:$ tatgs are removed from generated files to avoid committing of Zend/zend_vm_opcodes.h without real changes. 2005-10-28 06:05:57 +00:00
Dmitry Stogov
8212034254 Fixed SIGSEGV 2005-10-27 19:25:52 +00:00
Ilia Alshanetsky
3a9cdbfd41 Fixed memory leak on error 2005-10-27 14:07:30 +00:00
Marcus Boerger
2486b846cc - MFH zend_is_callable_ex() returns zend_class_entry* if available 2005-10-25 23:19:59 +00:00
Dmitry Stogov
187b6cc583 Fixed bug #31341 (escape on curly inconsistent) 2005-10-21 13:22:05 +00:00
Dmitry Stogov
7c3bdf444d Fixed bug #34782 (token_get_all() gives wrong result) 2005-10-21 09:32:40 +00:00
Dmitry Stogov
863bf8a574 Fixed bug #29268 (__autoload() not called with Reflection->getClass()) 2005-10-21 08:03:28 +00:00
Antony Dovgal
5fdeb391f3 MFH: fix copy/paste typo 2005-10-20 16:47:18 +00:00
Dmitry Stogov
ad1f706fda Removed unnecesary local variable 2005-10-20 11:31:41 +00:00
Dmitry Stogov
a8c338aa65 Fixed bug #34893 (PHP5.1 overloading, Cannot access private property) 2005-10-20 09:47:12 +00:00
Dmitry Stogov
c326593c1a Fixed bug #34712 (zend.ze1_compatibility_mode = on segfault) 2005-10-20 08:55:10 +00:00
Dmitry Stogov
03cb8e959b Fixed bug #34767 (Zend Engine 1 Compatibility not copying objects correctly) 2005-10-20 08:14:59 +00:00
Dmitry Stogov
d32c6512e1 Fixed bug #31177 (menory leaks and corruption because of incorrect refcounting). 2005-10-20 07:30:42 +00:00
Dmitry Stogov
c095e20ca8 Fixed bug #31177 (menory leaks and corruption because of incorrect refcounting) 2005-10-20 07:23:26 +00:00
Dmitry Stogov
9269f58477 Added forgotten tests 2005-10-20 07:04:25 +00:00
Dmitry Stogov
5fd4035194 Fixed test 2005-10-19 12:48:24 +00:00
Dmitry Stogov
cc50a96139 Fixed bug #34873 (Segmentation Fault on foreach in object) 2005-10-17 07:57:00 +00:00
Antony Dovgal
3c042299e6 MFH: add test for bug #34873 2005-10-14 21:52:18 +00:00
Antony Dovgal
d67821cd02 ws fix 2005-10-13 09:48:38 +00:00
Ilia Alshanetsky
58a0906bf9 MFH: Fixed bug #34802 (Fixed crash on object instantiation failure). 2005-10-10 14:31:12 +00:00
Dmitry Stogov
3019a1c6a3 Fixed bug #34786 (2 @ results in change to error_reporting() to random value) 2005-10-10 10:53:52 +00:00
Dmitry Stogov
b94970a3bd MFH 2005-10-10 10:50:16 +00:00
Dmitry Stogov
45794ee259 Fixed bug #34467 (foreach + __get + __set incosistency) 2005-10-10 09:50:05 +00:00
Marcus Boerger
dec65f584b - MFH ReflectionClass::isInstantiable and abstract classes 2005-10-06 22:46:33 +00:00
Marcus Boerger
48d9adc3f0 - MFH Allow uncached global functions 2005-10-03 12:36:36 +00:00
Dmitry Stogov
594fd87ca7 Fixed bug #34678 (__call(), is_callable() and static methods) 2005-10-03 09:12:19 +00:00
Dmitry Stogov
728acc3785 Fixed bug #34358 (Fatal error: Cannot re-assign $this) 2005-10-03 08:21:51 +00:00
Dmitry Stogov
386a3b9305 Fixed bug #34617 (zend_deactivate: objects_store used after zend_objects_store_destroy is called) 2005-09-27 18:07:41 +00:00
Antony Dovgal
6cf5be04d6 MFH: fix test 2005-09-23 10:34:20 +00:00
Antony Dovgal
e3a1bf1e62 MFH 2005-09-23 09:40:16 +00:00
Antony Dovgal
5ece2f6369 add new tests 2005-09-23 09:39:00 +00:00
Antony Dovgal
d38a901189 - store current value of error_reporting only if it's not stored yet
- reset old_error_reporting to NULL only it points to the tmp_var at current opline
2005-09-23 09:36:43 +00:00
Dmitry Stogov
d6c7d9630b MFH 2005-09-23 07:12:07 +00:00
Antony Dovgal
eef28dacec bump API number 2005-09-22 19:13:32 +00:00
Antony Dovgal
f8e8c5534b MFH: fix #33771 (error_reporting falls to 0 when @ was used inside try/catch block) 2005-09-22 19:03:18 +00:00
Marcus Boerger
967413c58c - MFH Fix Bug #34243 ReflectionClass::getDocComment() returns no result 2005-09-21 09:56:51 +00:00
Derick Rethans
a51fc50b6e - MFH: Moved the FREE_OP to after the execution of the included file, or eval
statement so that it is safe to access this information in the overridden
  zend_execute() function, which is what Xdebug does.
2005-09-21 08:13:43 +00:00
Dmitry Stogov
9d3ac92729 MFH (removed unnecesary call to zval_ptr_dtor) 2005-09-19 17:50:24 +00:00
Dmitry Stogov
0ce7487110 Fixed access to memory that is already freed (in case of __call() method) 2005-09-19 16:28:54 +00:00
Dmitry Stogov
46488c8bb4 Fixed parameter passing incompatibilities.
Now it is possible to call array_pop(explode("&","1&2&3")) again.
2005-09-19 16:02:21 +00:00
Antony Dovgal
21e809b7be MFH: check class_entry of this_ptr in Reflection API 2005-09-16 20:21:46 +00:00
Antony Dovgal
f43767b249 fix #34505 (possible memory corruption when unmangling properties with empty names)
1st part
2005-09-16 17:05:09 +00:00
Dmitry Stogov
e4a4ab60c7 Fixed bug #34518 (Unset doesn't separate container in CV) 2005-09-16 14:42:46 +00:00
Dmitry Stogov
8cf678c306 MFH (overriding of protected static property) 2005-09-16 13:42:49 +00:00
foobar
ae281c372a - Fix tests due to changes in the error messages.
# Also nuked some CRLF's
2005-09-15 19:49:58 +00:00
foobar
eb7e9b6bfc - Fixed error message grammar 2005-09-15 13:10:31 +00:00
Marcus Boerger
650b76e542 - MFH: Improve error message 2005-09-14 18:23:48 +00:00
foobar
dc929d011c MFH 2005-09-14 15:53:02 +00:00
Sara Golemon
196e54fc43 MFH(r-1.719) Plug leak of 1/2 bytes when converting from string/unicode 2005-09-12 17:44:21 +00:00
Dmitry Stogov
9d1f2f30d3 Fixed bug #34199 (if($obj)/if(!$obj) inconsistency) 2005-09-12 11:48:57 +00:00
Dmitry Stogov
21698c12fe Fixed huge memory leak in ZTS mode (backport from HEAD) 2005-09-12 09:06:15 +00:00
Dmitry Stogov
9305339d94 Changed "instanceof" and "catch" operators, is_a() and is_subclass_of() functions to not call __autoload(). 2005-09-09 06:48:49 +00:00
Andrei Zmievski
0eabbc9f89 Fix bug #34307. We were not calling on_modify handler to set the default
value in case setting the one from .ini file failed.
2005-09-02 20:51:15 +00:00
Dmitry Stogov
6319efa013 Fixed bug #34260 (Segfault with callbacks (array_map) + overloading) 2005-09-02 07:47:28 +00:00
Dmitry Stogov
4f161fe289 Fixed bug #34137 (assigning array element by reference causes binary mess) 2005-09-01 13:21:37 +00:00
Dmitry Stogov
40f971b5b6 Fixed bug #34310 (foreach($arr as $c->d => $x) crashes) 2005-09-01 10:54:38 +00:00
Dmitry Stogov
248345d920 Support for class constants and static members for internal classes 2005-09-01 10:05:32 +00:00
foobar
d1a4819c09 Added test for bug #34310 2005-08-31 09:16:24 +00:00
Dmitry Stogov
7230be4951 Fixed possible memory leak 2005-08-30 07:22:23 +00:00
Dmitry Stogov
19dc0411f7 Fixed return-by-reference from internal functions 2005-08-24 10:41:06 +00:00
Stanislav Malyshev
33df597531 fix crash if throw attempted outside of executable code 2005-08-22 13:26:33 +00:00
Ilia Alshanetsky
3b329a9926 MFH: Fixed bug #34156 (memory usage remains elevated after memory limit is
reached);
2005-08-18 15:14:12 +00:00
Antony Dovgal
4e798f6e02 MFH: fix memleak 2005-08-18 15:13:45 +00:00
foobar
a23aec662c MFH: nuked eol from error message 2005-08-18 12:34:22 +00:00
Dmitry Stogov
976edd47e2 Fixed bug #32981 (ReflectionMethod::getStaticVariables() causes apache2.0.54 seg fault) 2005-08-17 11:54:34 +00:00
Dmitry Stogov
496bc9fce3 Fixed memory leak 2005-08-16 10:49:25 +00:00
Dmitry Stogov
a0d479994f Fixed typo (ZVAL_LONG() -> ZVAL_DOUBLE()) 2005-08-12 14:56:59 +00:00
Antony Dovgal
565c7708ca fix #34078 (Reflection API problems in methods with boolean or null default values) 2005-08-11 21:16:20 +00:00
Dmitry Stogov
daba35fead Fixed bug #34062 (Crash in catch block when many arguments are used) 2005-08-10 13:11:05 +00:00
Dmitry Stogov
ebd4ab4d78 Fixed bug #25359 (array_multisort() doesn't work in a function if array is global or reference) 2005-08-10 12:02:52 +00:00
Dmitry Stogov
779e6d203e Fixed bug #34064 (arr[] as param to function in class gives invalid opcode) 2005-08-10 10:39:55 +00:00
Dmitry Stogov
f0f1557998 Fixed bug #34045 (Buffer overflow with serialized object) 2005-08-10 06:37:19 +00:00
Andi Gutmans
eeecc8a015 - No release today. Found a critical bug... 2005-08-09 05:40:56 +00:00
Andi Gutmans
01d8e59d3b - RC1 2005-08-09 05:08:59 +00:00
foobar
0f2986fe9d - Show the dependancy name we could not find (req_mod is null here when it is not found :) 2005-08-08 14:25:05 +00:00
2f4ee2fc86 ChangeLog update 2005-08-06 05:37:51 +00:00
Dmitry Stogov
32d69c853a Fixed bug #33996 (No information given for fatal error on passing invalid value to typed argument) 2005-08-05 09:35:09 +00:00
Dmitry Stogov
c10d6d3c89 Fixed bug #33999 (object remains object when cast to int) 2005-08-05 09:02:14 +00:00
Dmitry Stogov
a744a6feb5 Fixed memory leak in foreach() on undefined variable (Zend/tests/foreach_undefined.php) 2005-08-05 06:29:46 +00:00
85d77d8cea ChangeLog update 2005-08-05 05:40:03 +00:00
Antony Dovgal
b87970a956 add test for the last Dmitry's fix 2005-08-04 14:12:07 +00:00
Dmitry Stogov
aafc593eb5 Fixed possible memory corryption during compilation of <?php foreach($a as $b); ?> 2005-08-04 14:04:36 +00:00
Dmitry Stogov
23e4102e95 Fixed clone bug in ze1_compatibilty mode 2005-08-04 08:36:54 +00:00
3887a6e835 ChangeLog update 2005-08-04 05:49:41 +00:00
foobar
23e671a51e - Bumber up year 2005-08-03 14:08:58 +00:00
foobar
916815b779 Bump up the year 2005-08-03 13:30:58 +00:00
foobar
b732622dfa Nuked DOS EOLs 2005-08-03 13:29:00 +00:00
d1623186d5 ChangeLog update 2005-08-03 05:36:05 +00:00
Dmitry Stogov
650cdaed12 Fixed bug #33942 (the patch to #33156 crash cygwin except cli) 2005-08-02 17:01:17 +00:00
foobar
9f6e05964f - Fixed bug #33967 (misuse of Exception constructor doesn\'t display errorfile) 2005-08-02 16:31:53 +00:00
Dmitry Stogov
b529831df8 Removed warnings 2005-08-02 12:11:55 +00:00
3c8d91f558 ChangeLog update 2005-07-30 05:37:45 +00:00
Ilia Alshanetsky
70f72d39e4 Fixed warning message generated when isset() or empty() are given invalid
offset type.
2005-07-29 16:27:32 +00:00
Anantha Kesari H Y
3e3d9e941e In NetWare few of the programs like apache2 and ldap use winsock inclusinf sys/socket.h is not desirable.
--Kamesh
2005-07-29 09:20:32 +00:00
97c460c813 ChangeLog update 2005-07-29 05:38:30 +00:00
foobar
49787c93be update generated file 2005-07-29 00:22:02 +00:00
Andi Gutmans
9c392835de - Tiny fixlet 2005-07-28 21:39:57 +00:00
Marcus Boerger
53e5260662 - Add convenience function zend_is_callable_ex() and base zend_is_callable
and zend_make_callable on it. This functions allows to check if a php
  variable is a callable function and returns its function pointer as well
  as object if possible.
# Commit this now so we can use it in 5.1.* series as discussed with Andi.
2005-07-28 20:55:50 +00:00
bed55bd176 ChangeLog update 2005-07-27 05:38:07 +00:00
foobar
2a8cd27f4e bug #33865 2005-07-26 18:33:15 +00:00
3a5eca2bae ChangeLog update 2005-07-26 05:32:16 +00:00
Marcus Boerger
1fad73d13d - Fix #33853
# When a static class function is being called then we first look for the
# class with name unchanged. If the class is then not available it the
# method can never be callable, thus we return 0. If the class is available
# the lowercased name will be broken up into class and function and 1 is
# being returned.
2005-07-25 20:24:11 +00:00
84f28ce6c1 ChangeLog update 2005-07-23 05:39:09 +00:00
Dmitry Stogov
1c82ec11a1 Fixed bug #33802 (throw Exception in error handler causes crash) 2005-07-22 07:33:03 +00:00
b19c520142 ChangeLog update 2005-07-22 05:39:31 +00:00
Marcus Boerger
e11fc8bda4 - Fix error generation logic (found by johannes) 2005-07-21 16:52:32 +00:00
Dmitry Stogov
6b5f4da085 Fixed bug with returning from internal function by reference 2005-07-21 13:48:10 +00:00
1b31dfb160 ChangeLog update 2005-07-20 05:36:08 +00:00
Marcus Boerger
897090c01e - Dont't warn in case an exception is pending - in this case it'd superflous 2005-07-19 19:46:21 +00:00
Dmitry Stogov
7aca138456 Fixed bug #33710 (ArrayAccess objects doen't initialize $this) 2005-07-19 07:33:00 +00:00
a59f50faca ChangeLog update 2005-07-19 05:31:59 +00:00
Rasmus Lerdorf
ec58143e93 Valgrind is unhappy that this is not initialized 2005-07-18 18:32:36 +00:00
Dmitry Stogov
70bd938bbd Fixed bug in new module statrup mechanism 2005-07-18 16:20:08 +00:00
Dmitry Stogov
f90bdf8933 Fixed bug #33558 (warning with nested calls to functions returning by reference) 2005-07-18 07:13:34 +00:00
Dmitry Stogov
d7baf87c61 Removed some compilation warnings. 2005-07-18 06:34:42 +00:00
d8415108b4 ChangeLog update 2005-07-18 05:36:08 +00:00
foobar
8cea6123e9 typo 2005-07-18 01:09:22 +00:00
Marcus Boerger
c1e73b4a67 - Add new test 2005-07-17 20:57:51 +00:00
Ilia Alshanetsky
96fc6717e9 Added missing init. 2005-07-17 19:17:10 +00:00
cdd43e622d ChangeLog update 2005-07-15 05:34:39 +00:00
Andi Gutmans
bdf2753ee8 - Back to -dev 2005-07-14 14:01:02 +00:00
Andi Gutmans
a007ddb190 - Beta 3 2005-07-14 13:44:03 +00:00
2f390c25d8 ChangeLog update 2005-07-13 05:35:44 +00:00
Andi Gutmans
f030fe2f3a - Back to -dev 2005-07-12 20:25:28 +00:00
Andi Gutmans
897818e1a0 - Beta 3 2005-07-12 19:59:52 +00:00
Dmitry Stogov
c25b8a3699 Fixed bug #33156 (cygwin version of setitimer doesn't accept ITIMER_PROF). (Nuno) 2005-07-12 06:52:59 +00:00
212299c1fa ChangeLog update 2005-07-12 05:38:51 +00:00
Ilia Alshanetsky
8a9fc3439a Make references misuse emit E_NOTICE rather E_STRICT to be compatible with
PHP 4.4.0
2005-07-11 18:44:37 +00:00
44713e7b63 ChangeLog update 2005-07-09 05:37:17 +00:00
foobar
c17e7e896e fix test when session.save_handler is "user" 2005-07-08 07:57:47 +00:00
b8bcdbc5f6 ChangeLog update 2005-07-08 05:38:53 +00:00