Commit Graph

5078 Commits

Author SHA1 Message Date
Antony Dovgal
a1640d5ef9 duplicate string when needed 2006-02-03 13:24:26 +00:00
Dmitry Stogov
558e883302 Fixed bug #36268 (Object destructors called even after fatal errors) 2006-02-03 09:33:31 +00:00
b7b5b9fe79 ChangeLog update 2006-02-02 06:31:46 +00:00
Zeev Suraski
8a2a69ad0f Fix possibility of a wrong element being deleted by zend_hash_del() 2006-02-01 01:05:17 +00:00
efae4837cf ChangeLog update 2006-01-25 06:31:47 +00:00
Antony Dovgal
9c8bc2043c improve CS 2006-01-24 23:58:54 +00:00
Marcus Boerger
35e632257e - Add fast access to HashTable 2006-01-24 19:48:11 +00:00
3f5eb39f8c ChangeLog update 2006-01-23 06:31:56 +00:00
Marcus Boerger
b7d473ac00 - WS 2006-01-22 22:15:55 +00:00
Marcus Boerger
f4a0ce710e - Fix method invocation issues 2006-01-22 18:55:02 +00:00
9b674c8a79 ChangeLog update 2006-01-20 06:31:47 +00:00
Antony Dovgal
04ad1d1462 fix test 2006-01-19 21:27:15 +00:00
Dmitry Stogov
d90873d3ce Fixed bug #36071 (Engine Crash related with 'clone') 2006-01-19 07:26:58 +00:00
185dabe26b ChangeLog update 2006-01-19 06:31:47 +00:00
Antony Dovgal
79bebd9bf8 make sure ce_child is properly initialized 2006-01-18 21:06:18 +00:00
1105368b9c ChangeLog update 2006-01-18 06:31:47 +00:00
Antony Dovgal
b8dda54715 fix build 2006-01-17 22:13:39 +00:00
Ilia Alshanetsky
b0b79b138d MFB51: Fixed bug #36046 (parse_ini_file() miscounts lines in multi-line
values).
2006-01-17 19:56:41 +00:00
Dmitry Stogov
227295a4f1 Unicode stuff is changed according to decision maden on PDM.
Now IS_BINRAY data type is removed and IS_STRING starts behave as IS_BINARY in unicode mode. IS_STRING is incompatible with IS_UNICODE, so ALL functions should be improved to support unicode mode.
2006-01-17 12:18:53 +00:00
Dmitry Stogov
465b131c2f Fixed bug #36037 (heredoc adds extra line number) 2006-01-17 09:39:33 +00:00
b29d9dbc87 ChangeLog update 2006-01-17 06:31:48 +00:00
Dmitry Stogov
c93396ae1a Fixed bug #36006 (Problem with $this in __destruct()) 2006-01-16 10:12:54 +00:00
806c280d6d ChangeLog update 2006-01-15 06:31:47 +00:00
Marcus Boerger
584c0719e4 - Fix test 2006-01-14 15:55:10 +00:00
Marcus Boerger
2fe859febb - Fixed bug #36011 2006-01-14 15:22:19 +00:00
c043dd301c ChangeLog update 2006-01-08 06:31:44 +00:00
Marcus Boerger
ec20ba1a50 - MFB Second part of is_callable/call_user_func
- Clean a few warnings
2006-01-07 21:29:00 +00:00
Marcus Boerger
416d5f2c0c - MFB missing E_STRICT 2006-01-07 21:16:02 +00:00
Marcus Boerger
ddd5d80194 - MFB zend_is_callable() fixes
# Now to the missing part in zend_call_function()
2006-01-07 20:43:33 +00:00
5f99b7cb52 ChangeLog update 2006-01-07 06:31:44 +00:00
Antony Dovgal
9cd04b68d1 typo 2006-01-06 20:54:46 +00:00
bd53ba7cf9 ChangeLog update 2006-01-06 06:31:45 +00:00
bcb25bffec ChangeLog update 2006-01-05 06:31:47 +00:00
Andi Gutmans
a93ddab01e - More -> 2006 changes 2006-01-05 02:35:02 +00:00
Andi Gutmans
5de7cc3194 - Update copyright notices to 2006 2006-01-04 23:54:12 +00:00
c6a372dba2 ChangeLog update 2006-01-02 06:31:58 +00:00
foobar
d99d22dc11 oops 2006-01-01 13:25:34 +00:00
foobar
3631df802d - fix typo 2006-01-01 13:13:11 +00:00
96bb0c4395 ChangeLog update 2005-12-27 06:32:16 +00:00
Antony Dovgal
01c1e2f719 MFB: typofix 2005-12-26 23:58:55 +00:00
Dmitry Stogov
39a540f75f Reverted invalid fix for bug #35785 2005-12-26 08:21:29 +00:00
368f9414bc ChangeLog update 2005-12-24 06:31:56 +00:00
Marcus Boerger
1edb0395ab - Fixed Bug #35785 (SimpleXML memory read error) 2005-12-23 20:31:39 +00:00
dbfe958172 ChangeLog update 2005-12-23 06:31:49 +00:00
Dmitry Stogov
925f3f1880 Fixed bug #35612 (iis6 Access Violation crash). (alacn dot uhahaa at gmail dot com) 2005-12-22 16:46:03 +00:00
Dmitry Stogov
69200c9baf Fixed memory leak and typo 2005-12-22 09:31:40 +00:00
9d27d22b07 ChangeLog update 2005-12-21 06:31:46 +00:00
Marcus Boerger
c80e82230b - Move zend_object_value definition to zend_type.h
# Types declared there can be used in configure stuff already. zend.h is
# being created by configure...
2005-12-20 21:35:17 +00:00
Marcus Boerger
e072c3e590 - Add Z_OBJVAL*() macros 2005-12-20 21:33:14 +00:00
Antony Dovgal
333e66cc4f MFB: fix test decription 2005-12-20 17:00:59 +00:00
Antony Dovgal
3ba24546ed MFB: fix leak appearing when __autoload() throws an exception 2005-12-20 11:25:39 +00:00
45e6d9a1c6 ChangeLog update 2005-12-18 06:31:48 +00:00
Marcus Boerger
170918c6eb - Fix Bug #35720 A final constructor can be overwritten 2005-12-17 15:50:24 +00:00
foobar
f1cb188015 fix test 2005-12-17 14:56:02 +00:00
6ddfecd65a ChangeLog update 2005-12-17 06:31:58 +00:00
Marcus Boerger
96150967b3 - Add new const 2005-12-16 23:23:52 +00:00
Marcus Boerger
73fe423ede - WS 2005-12-16 23:13:24 +00:00
Marcus Boerger
10e69db3fa - MFB 2005-12-16 23:11:00 +00:00
f57d9428cf ChangeLog update 2005-12-14 06:31:49 +00:00
Antony Dovgal
627077e6a4 use default colors to prevent any problems with existing php.ini 2005-12-13 22:32:04 +00:00
Marcus Boerger
e9086f967a - MFB Fix zend*_str_tolower_copy() 2005-12-13 21:09:18 +00:00
Ilia Alshanetsky
4cb1bf0e9e MFB51: Fixed bug #35655 (whitespace following end of heredoc is lost). 2005-12-13 21:00:49 +00:00
c7c509e7e8 ChangeLog update 2005-12-13 06:31:44 +00:00
foobar
eccf9c7abf - Include timestamp for the leaks. (to make possible matching leaks with access_log entries) 2005-12-12 11:00:18 +00:00
661eedec9f ChangeLog update 2005-12-10 06:53:20 +00:00
Dmitry Stogov
57f7f1952c Fixed bug #35612 (iis6 Access Violation crash) 2005-12-09 18:09:08 +00:00
8606bc1638 ChangeLog update 2005-12-09 06:51:50 +00:00
Dmitry Stogov
f7433c021d Fixed test 2005-12-08 08:10:00 +00:00
245cb12834 ChangeLog update 2005-12-08 06:46:37 +00:00
Ilia Alshanetsky
04ee70f6eb MFB51:
fix for bug #35382
	fix for bug #35411
2005-12-08 03:12:34 +00:00
Dmitry Stogov
ea4197207b Fixed test 2005-12-07 14:18:12 +00:00
fa0f08e089 ChangeLog update 2005-12-06 06:46:50 +00:00
Antony Dovgal
7a8a89f35e MF51: more typos fixed (thanks to Mike Naberezny for noticing these) 2005-12-05 20:07:18 +00:00
Antony Dovgal
43536d38e6 MF51: improve error messages 2005-12-05 13:41:14 +00:00
Dmitry Stogov
7aaff40de5 Fixed bug #35509 (string constant as array key has different behavior inside object) 2005-12-05 08:56:32 +00:00
b06df87d20 ChangeLog update 2005-12-05 06:50:42 +00:00
Antony Dovgal
ced6ef40cd fix #35539 (typo in error message for ErrorException) 2005-12-04 11:45:45 +00:00
7f8adfcc7e ChangeLog update 2005-12-04 06:48:28 +00:00
688f880e61 ChangeLog update 2005-12-03 06:46:25 +00:00
foobar
8e5799059d Nuked dos EOLs and fixed typo 2005-12-03 00:00:44 +00:00
Marcus Boerger
f509c44be8 - Be picky about names 2005-12-02 15:59:36 +00:00
dbe3d0b8d7 ChangeLog update 2005-12-02 06:46:50 +00:00
Dmitry Stogov
a139e19fe3 Fixed bug #35437 (Segfault or Invalid Opcode 137/1/4) 2005-12-01 12:51:19 +00:00
Dmitry Stogov
feaa2501d0 Fixed bug #34729 (Crash in ZTS mode under Apache) 2005-12-01 11:49:51 +00:00
57fa8a5782 ChangeLog update 2005-12-01 06:45:42 +00:00
Dmitry Stogov
c58d4c590a Fixed bug #35373 (HP-UX "alias not allowed in this configuration") 2005-11-30 10:25:51 +00:00
Dmitry Stogov
d409c5e347 Fixed bug #35470 (Assigning global using variable name from array doesn't function) 2005-11-30 10:10:32 +00:00
0ba09c083f ChangeLog update 2005-11-29 06:49:28 +00:00
Dmitry Stogov
4192685b64 Fixed bug #35393 (changing static protected members from outside the class, one more reference issue) 2005-11-28 14:33:44 +00:00
1407f79e79 ChangeLog update 2005-11-28 06:43:30 +00:00
f2dd944cec ChangeLog update 2005-11-27 06:48:53 +00:00
Marcus Boerger
117753db1e - Fix bug #35406 eval hangs when evall'ed code ends with comment w/o newline 2005-11-26 13:09:28 +00:00
f4d2e7ba9c ChangeLog update 2005-11-26 06:37:54 +00:00
Antony Dovgal
984ce697ec ICC doesn't support __attribute__ for pointers 2005-11-25 12:25:22 +00:00
5d80c942f5 ChangeLog update 2005-11-25 06:41:36 +00:00
Dmitry Stogov
a42086c73c Fixed bug #35360 (exceptions in interactive mode (php -a) may cause crash) 2005-11-24 11:32:44 +00:00
c9e26c3ec0 ChangeLog update 2005-11-24 06:41:47 +00:00
Dmitry Stogov
310ab5b4be Additional fix for fix #35536 2005-11-23 13:30:18 +00:00
Antony Dovgal
9457dc348c forgotten part of the fix 2005-11-23 11:57:43 +00:00
Antony Dovgal
9e9a55f9ac MF51: fix #35336 (crash on PDO::FETCH_CLASS + __set()) 2005-11-23 11:55:46 +00:00
Dmitry Stogov
98b8a0fdb9 Bug #33732 (Wrong behavior of constants in class and interface extending) 2005-11-23 09:27:01 +00:00
a08a89e9eb ChangeLog update 2005-11-23 06:51:42 +00:00
2bf81c4a3f ChangeLog update 2005-11-22 06:48:55 +00:00
3247484267 ChangeLog update 2005-11-20 06:48:39 +00:00
Marcus Boerger
3bffc21967 - Fixed Bug #35286 tokenizer ext drops final comment (by greg) 2005-11-19 09:43:19 +00:00
3314fe6b22 ChangeLog update 2005-11-18 06:42:57 +00:00
Marcus Boerger
a40a48fbd4 - Move Reflection into its own extension 2005-11-17 22:59:39 +00:00
Antony Dovgal
510f40c3bc make GCC happy and suppress the warning 2005-11-17 19:20:14 +00:00
Dmitry Stogov
97190ee606 Removed support for continue and break operators with non-constant operands 2005-11-17 08:27:25 +00:00
8b9855a687 ChangeLog update 2005-11-17 06:54:18 +00:00
Ilia Alshanetsky
b05d189cc0 MFB51: Allow zend_parse_parameters to handle non-well formed integers, but
raise E_NOTICE in the process.
2005-11-17 00:20:31 +00:00
Dmitry Stogov
8373809e2e Fixed bug #35239 (Objects can lose references) 2005-11-16 11:52:53 +00:00
30e3bbdb0b ChangeLog update 2005-11-16 06:44:57 +00:00
Dmitry Stogov
0220a8318c Allow "null" default value for arguments with array type hint
Unicode support
2005-11-15 16:50:07 +00:00
Dmitry Stogov
8bb39e7dba Allow recursive calls to __get/__set for different properties 2005-11-15 15:21:47 +00:00
Dmitry Stogov
c4f93961b5 Fixed call to __destruct() for objects of classes delivered from internal ones those use zend_objects_store_put(obj, NULL, ... 2005-11-15 12:39:54 +00:00
158e80bed4 ChangeLog update 2005-11-08 06:44:26 +00:00
Dmitry Stogov
32fe5f2c3b Fixed bug #35009 (ZTS: Persistent resource destruct crashes when extension is compiled as shared) 2005-11-07 12:24:20 +00:00
22ae5cdfd0 ChangeLog update 2005-11-04 06:46:21 +00:00
2b9167e089 ChangeLog update 2005-11-03 06:46:29 +00:00
971bebd6e3 ChangeLog update 2005-11-02 06:44:42 +00:00
Marcus Boerger
169411d040 - Get rid of several wanrings 2005-11-01 20:41:59 +00:00
Marcus Boerger
00d5138e93 - Allow parameter parsing implementation raise an error early where more
information is available. And add ability to prevent double errors by
  returning "".
- Implement parameter parsing C which checks for a class name, if the value
  on input is not NULL then the pointer must be the zend_class_entry of the
  required base class.
# Do the KISS approach, looking at the code it isn't that easy does it?
2005-11-01 16:53:29 +00:00
Sebastian Bergmann
5d671dd4b2 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. This revised patch has been reviewed by Dmitry and Zeev. 2005-11-01 13:18:34 +00:00
Sebastian Bergmann
e094954bd1 Allow bison 2.1. 2005-11-01 10:31:15 +00:00
Sebastian Bergmann
621c6fb266 Revert. 2005-11-01 07:20:54 +00:00
35d4f32c84 ChangeLog update 2005-11-01 06:48:05 +00:00
Dmitry Stogov
372d59b648 Fixed bug #35017 (Exception thrown in error handler may cause unexpected behavior) 2005-10-31 19:29:48 +00:00
6b20d46781 ChangeLog update 2005-10-29 05:40:50 +00:00
Sebastian Bergmann
805cc1d659 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. Patch has been reviewed by Andi, Zeev, and Marcus. I will coordinate with Ilia on merging it to the PHP_5_1 branch after PHP 5.1.0 has been released. 2005-10-28 20:08:25 +00:00
Dmitry Stogov
0fe9266d9e Fixed bug #34879 (str_replace, array_map corrupt negative array indexes on 64-bit platforms) 2005-10-28 14:44:41 +00:00
Dmitry Stogov
05bd788e23 Fixed bug #34879 (str_replace, array_map corrupt negative array indexes) 2005-10-28 13:48:15 +00:00
Dmitry Stogov
3c6c6d2a9a $id:$ tatgs are removed from generated files to avoid committing of Zend/zend_vm_opcodes.h without real changes. 2005-10-28 06:05:41 +00:00
cefc6bb11b ChangeLog update 2005-10-28 05:42:07 +00:00
Dmitry Stogov
804e3b4f5b Fixed SIGSEGV 2005-10-27 19:25:07 +00:00
Ilia Alshanetsky
cbeef6084b MFB51: Fixed memory leak on error 2005-10-27 14:14:33 +00:00
810520b20b ChangeLog update 2005-10-26 05:40:59 +00:00
Marcus Boerger
ff5ae1d0de - Make the code a bit clearer 2005-10-25 23:11:26 +00:00
Marcus Boerger
9b584a1499 - api was changed, also we are here in api 3.*, not 2 anymore 2005-10-25 19:42:55 +00:00
Marcus Boerger
c72d91afd7 - Make zend_is_callable_ex() return the class netry if available 2005-10-25 19:38:09 +00:00
91abf74e88 ChangeLog update 2005-10-25 05:47:13 +00:00
Dmitry Stogov
d464599515 Unicode support (bug #31341) 2005-10-24 07:17:16 +00:00
bc35d8c56c ChangeLog update 2005-10-22 05:39:36 +00:00
Dmitry Stogov
de047ae0a5 Fixed bug #31341 (escape on curly inconsistent) 2005-10-21 13:22:10 +00:00
Dmitry Stogov
5fd04023dc Fixed bug #34782 (token_get_all() gives wrong result) 2005-10-21 09:33:04 +00:00
Dmitry Stogov
6ef4239827 Fixed bug #29268 (__autoload() not called with Reflection->getClass()) 2005-10-21 08:03:39 +00:00
de96385160 ChangeLog update 2005-10-21 05:42:08 +00:00
Antony Dovgal
fc834fef2f copy/paste typo 2005-10-20 16:46:44 +00:00
Dmitry Stogov
81b506bdd0 Removed unnecesary local variable 2005-10-20 11:31:59 +00:00
Dmitry Stogov
5372281b01 Fixed bug #34893 (PHP5.1 overloading, Cannot access private property) 2005-10-20 09:47:31 +00:00
Dmitry Stogov
0fe08e9b67 Fixed bug #34712 (zend.ze1_compatibility_mode = on segfault) 2005-10-20 08:56:02 +00:00
Dmitry Stogov
22130a2b74 Fixed bug #34767 (Zend Engine 1 Compatibility not copying objects correctly) 2005-10-20 08:15:13 +00:00
Dmitry Stogov
2507a54429 Fixed bug #31177 (menory leaks and corruption because of incorrect refcounting) 2005-10-20 07:23:58 +00:00
Dmitry Stogov
05975d1457 Added forgotten tests 2005-10-20 07:03:45 +00:00
1bc48cc521 ChangeLog update 2005-10-20 05:34:50 +00:00
Dmitry Stogov
9e9cee5c9d Fixed test 2005-10-19 12:48:07 +00:00
8e86d3ce2b ChangeLog update 2005-10-18 05:36:34 +00:00
Dmitry Stogov
bc446eec5b Fixed bug #34873 (Segmentation Fault on foreach in object) 2005-10-17 08:01:07 +00:00
Derick Rethans
086875b107 - Make sure that typehints for classes can only accept "= NULL" as default
value.
2005-10-17 07:03:33 +00:00
60eff57dda ChangeLog update 2005-10-17 05:45:46 +00:00
Marcus Boerger
c49a1999cb - Add ability to access private properties of base classes
- Add ability to specify fully qualified name for properties
- ReflectionClass::getInterfaces89 now returns associative array
2005-10-16 16:13:55 +00:00
9ef2886e63 ChangeLog update 2005-10-16 05:47:08 +00:00
Derick Rethans
a1527fdaf3 - Changed type hints so that they take "= NULL" as default value. 2005-10-15 12:54:19 +00:00
7c1e029f34 ChangeLog update 2005-10-15 05:36:00 +00:00
Antony Dovgal
cc85fdf510 add test for bug #34873 2005-10-14 21:50:46 +00:00
b513f306d0 ChangeLog update 2005-10-14 05:45:27 +00:00
9e2fdf2af0 ChangeLog update 2005-10-13 05:40:53 +00:00
Dmitry Stogov
8ac7004ea7 Unicode support 2005-10-12 10:12:15 +00:00
bfee08f77f ChangeLog update 2005-10-12 05:45:26 +00:00
Dmitry Stogov
5d4cd1a71a Fixed compilation on Windows 2005-10-11 11:39:01 +00:00
2892b13bb9 ChangeLog update 2005-10-11 05:45:37 +00:00
Ilia Alshanetsky
f14cf0f7d8 Fixed bug #34802 (Fixed crash on object instantiation failure). 2005-10-10 14:30:05 +00:00
Dmitry Stogov
98294fbf3f Fixed bug #34786 (2 @ results in change to error_reporting() to random value) 2005-10-10 10:54:45 +00:00
Dmitry Stogov
d3105c7ef6 MFH 2005-10-10 10:50:35 +00:00
Dmitry Stogov
9ac7051043 Fixed bug #34467 (foreach + __get + __set incosistency) 2005-10-10 09:50:20 +00:00
e63632d234 ChangeLog update 2005-10-10 05:36:24 +00:00
Marcus Boerger
d4190c0513 - Add 'overwrites' info to method dump
# Right now we have to compute that information because it is not available
2005-10-09 17:14:15 +00:00
204dfa9bad ChangeLog update 2005-10-09 05:41:35 +00:00
Marcus Boerger
c188afdd03 - Add ReflectionMethod::getPrototype()
- Add some usefull information to the method dump
  . From where it was inherited
  . The prototype
2005-10-08 23:37:31 +00:00
5b7fee64f5 ChangeLog update 2005-10-08 05:34:18 +00:00
Dmitry Stogov
e9f91abfef Fixed memory leak 2005-10-07 10:06:45 +00:00
cc29cff0fd ChangeLog update 2005-10-07 05:40:21 +00:00
Marcus Boerger
7d2a02feb6 - BC: php objects convert to int/double 1 with notice 2005-10-06 19:11:01 +00:00
Marcus Boerger
86164a5b94 - Show the test finishes/dos2unix 2005-10-06 19:05:10 +00:00
Marcus Boerger
f78cdd9550 - Fix test 2005-10-06 19:02:20 +00:00
Marcus Boerger
cfed9e4e74 - Fix test 2005-10-06 19:01:40 +00:00
Marcus Boerger
df7f8a9df5 - Fix test
- Convert to unicode
2005-10-06 18:52:51 +00:00
Marcus Boerger
b9211d24e7 - Any php object converts to boolean as true 2005-10-06 18:46:01 +00:00
Dmitry Stogov
f27aedcce2 Cleanup 2005-10-06 08:18:20 +00:00
93dcfb79de ChangeLog update 2005-10-06 05:34:43 +00:00
Marcus Boerger
7c083fcc07 - Have __toString() be called if available in all places an object is used
as a string.
#
# Note that "Object #<id>" is no longer afallback for debugging purpose use
# var_dump, which was made for debugging. If you used this to grab the id
# of an object you can never rely on this. For object storage look at SPL's
# ObjectStorage class.
#
# Note the signature change in the cast handler:
#
# int (*cast_t)(zval *readobj, zval *writeobj, int type, int should_free TSRMLS_DC);
# int (*cast_t)(zval *readobj, zval *retval, int type TSRMLS_DC);
2005-10-05 19:02:27 +00:00
Marcus Boerger
12dbad3a5c - Fix warnings 2005-10-05 18:57:40 +00:00
61bf77f29c ChangeLog update 2005-10-04 05:38:47 +00:00
Marcus Boerger
6d703c5967 - In a conditional statement "a ? b ? c", a and b MUST have the same type
# We should make this an inline function to prevent unnecessary calls to
# get classentry or requir that class_entry must return a valid class_entry
# which we do iirc anyway.
2005-10-03 19:24:09 +00:00
Marcus Boerger
ebcafe58d3 - Fix ZTS Build 2005-10-03 19:13:13 +00:00
Marcus Boerger
4d09d0b819 - Allow uncached global functions too 2005-10-03 12:34:57 +00:00
Marcus Boerger
0d5550eb06 - Add propper casting 2005-10-03 12:14:47 +00:00
Marcus Boerger
59557385ac - Make reflection class pointers available for others 2005-10-03 10:04:33 +00:00
Dmitry Stogov
cdb1746ac3 Fixed bug #34678 (__call(), is_callable() and static methods) 2005-10-03 09:10:28 +00:00
Dmitry Stogov
eedbae57ae Fixed bug #34358 (Fatal error: Cannot re-assign $this) 2005-10-03 08:21:20 +00:00