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