Commit Graph

5948 Commits

Author SHA1 Message Date
Dmitry Stogov
a318af9992 Fixed bug #40002 (Try/Catch performs poorly) 2007-01-09 15:06:15 +00:00
Dmitry Stogov
9de739b847 Bump year. 2007-01-09 11:54:52 +00:00
8765d8553d ChangeLog update 2007-01-09 01:31:08 +00:00
Andrei Zmievski
c1c23f8f42 Let caller issue error. 2007-01-08 18:01:16 +00:00
Andrei Zmievski
005a9909ae Note. 2007-01-08 17:58:52 +00:00
79d92eaa2f ChangeLog update 2007-01-08 01:31:08 +00:00
Sara Golemon
110a1b6788 Typo 2007-01-07 19:04:33 +00:00
Sara Golemon
7dcebde684 Add add_property_zstr(l)(_ex)() 2007-01-07 06:16:57 +00:00
Sara Golemon
d3149fbda4 Add pestrndup() 2007-01-07 06:16:10 +00:00
Sara Golemon
6f234cbf6f Fix prior commit noticing this time that persistent allocators start with zend_*() and that one already exists 2007-01-07 05:45:07 +00:00
Sara Golemon
97ee887a13 Flesh out some missing API calls 2007-01-07 05:24:55 +00:00
3faf580a9a ChangeLog update 2007-01-06 01:31:04 +00:00
Sara Golemon
b39fc244f0 Update create_function() 2007-01-05 19:00:36 +00:00
3d0d3ed316 ChangeLog update 2007-01-04 01:30:57 +00:00
Antony Dovgal
6dd26de0c9 more magic number fixes 2007-01-03 20:49:27 +00:00
1cb8989129 ChangeLog update 2007-01-02 01:31:02 +00:00
Sebastian Bergmann
3717df72ae Bump year. 2007-01-01 09:29:37 +00:00
011a8ac0e6 ChangeLog update 2006-12-31 01:30:58 +00:00
4a2fe2e564 ChangeLog update 2006-12-29 01:30:58 +00:00
Antony Dovgal
52d9ed7b34 nuke dead code 2006-12-28 21:01:52 +00:00
19fca9176f ChangeLog update 2006-12-28 01:31:05 +00:00
Antony Dovgal
5204c96323 restore old behaviour when casting objects to strings and NULL 2006-12-27 17:22:22 +00:00
Antony Dovgal
da9f5e95bc fix convert_to_unicode() and convert_to_string() which didn't set the type of the op properly 2006-12-27 16:50:05 +00:00
Antony Dovgal
b1ce8b0345 add zend_u_strtoul() and fix build 2006-12-27 15:23:45 +00:00
62a107ea55 ChangeLog update 2006-12-27 01:31:05 +00:00
Ilia Alshanetsky
2dbfe66e4a MFB: safety checks 2006-12-26 17:40:20 +00:00
599b2e6d38 ChangeLog update 2006-12-26 01:31:04 +00:00
Dmitry Stogov
e88cc26864 Fixed bug #39825 (foreach produces memory error) 2006-12-25 19:23:18 +00:00
Dmitry Stogov
326fcd0261 Fixed bug #39944 (References broken) 2006-12-25 14:16:38 +00:00
Dmitry Stogov
cd07310423 Fixed possible size_t overflow 2006-12-25 12:16:49 +00:00
1a07d80f65 ChangeLog update 2006-12-24 01:31:04 +00:00
Antony Dovgal
6cbc9b0043 fix typo 2006-12-23 14:12:38 +00:00
4d5943ccb7 ChangeLog update 2006-12-23 01:30:59 +00:00
Andrei Zmievski
93b9c779f3 Implement OnUpdateUTF8String() handler. It always assumes UTF-8 input,
since we cannot check for UG(unicodE) inside it.
2006-12-22 21:38:12 +00:00
9b8babbbd2 ChangeLog update 2006-12-22 01:31:06 +00:00
Marcus Boerger
9103d6b5fe - Implement ezstrndup() 2006-12-22 00:56:59 +00:00
Marcus Boerger
7acd10fb2c - Make custom serializing work with zstr (as discussed with andrei) 2006-12-22 00:29:11 +00:00
Marcus Boerger
bc1b8f0ab1 - Use conversion macro 2006-12-22 00:28:20 +00:00
Marcus Boerger
063fe11d25 -Serialization doesn't work with unicode data 2006-12-21 22:54:20 +00:00
Antony Dovgal
bfed0b6d94 fix possible leak 2006-12-21 11:07:41 +00:00
Ilia Alshanetsky
68181b4430 MFB: Fix a possible memory leak 2006-12-21 02:11:12 +00:00
Ilia Alshanetsky
113686caa4 MFB: Fixed possible memory leak 2006-12-21 01:58:46 +00:00
ee24e243f5 ChangeLog update 2006-12-21 01:31:02 +00:00
Antony Dovgal
53f30a15aa make sure err_char is initialized properly 2006-12-21 00:25:16 +00:00
Antony Dovgal
120275b00e fix possible leak on failure in get_defined_functions() 2006-12-20 23:19:44 +00:00
Antony Dovgal
722ad46c38 fix leak in zend_disable_class() 2006-12-20 23:00:54 +00:00
Marcus Boerger
71a73834f4 - Make shorter and do not use problematic attribute 2006-12-20 20:59:18 +00:00
Marcus Boerger
2f7e1b8ef3 - Compilers mightnot like the zstr return,thus return void* 2006-12-20 20:49:01 +00:00
Andrei Zmievski
de0f972b2b Check for conversion failure in "s&" and return appropriately. 2006-12-20 20:43:52 +00:00
Andrei Zmievski
a98fa516e0 Fix return value in zval_unicode_to_string_ex(). 2006-12-20 20:43:31 +00:00
Andrei Zmievski
57e7e4921f Fix warning. 2006-12-20 20:42:50 +00:00
Marcus Boerger
89496ce1e6 - Implement zend_zstrndup() 2006-12-20 20:12:11 +00:00
Antony Dovgal
fa2889fbb1 return NULL right away if invalid length was passed 2006-12-20 19:08:23 +00:00
Antony Dovgal
7d1e0e7f30 fix #39903 (Notice message when executing __halt_compiler() more than once) 2006-12-20 16:30:00 +00:00
Dmitry Stogov
a7c536fbcd Make MEMORY_LIMIT and ZEND_USE_MALLOC_MM to be always enabled. They don't make a
ny significant slowdown, but incrise maintainability a lot. Note that the setting of memory_limit wasn't changes (neither in main/main.c nor in php.ini) and it
still set to 16M.
2006-12-20 10:50:46 +00:00
Hannes Magnusson
460360ae53 MFB:
- Fixed incorrect function names on FreeBSD where inet_pton() was named
        __inet_pton() and inet_ntop() was named __inet_ntop()
- Fixed bug #39685 (iconv() - undefined function)
- Fixed bug #38852 (XML-RPC Breaks iconv)
2006-12-20 10:38:24 +00:00
4006f00219 ChangeLog update 2006-12-20 01:31:04 +00:00
Marcus Boerger
dcc6a0e511 - Changed macro once again 2006-12-19 22:27:15 +00:00
Marcus Boerger
da3d27dc4e - Implement parameter parsing 'x' 2006-12-19 22:21:18 +00:00
Marcus Boerger
745b01794f - Fix macro param order 2006-12-19 22:20:16 +00:00
Marcus Boerger
0caec1601a - Implement zend_u_call_method to deal with situations where the function
name type is already known
2006-12-19 22:14:35 +00:00
Andrei Zmievski
e722dce575 - Marcus was too quick. Let's put type before zstr in the macros.
- Also mark get_include_path() and restore_include_path() with U.
2006-12-19 21:38:59 +00:00
Marcus Boerger
98dce57dd5 - Fix ZVAL_ZSTRL 2006-12-19 21:13:21 +00:00
c80e30a86f ChangeLog update 2006-12-19 01:31:00 +00:00
Dmitry Stogov
4d7652abef Fixed random generation of cookies and canaries 2006-12-18 11:39:34 +00:00
c89dabe0a2 ChangeLog update 2006-12-17 01:31:06 +00:00
Hannes Magnusson
950ab95207 Fix ZTS build 2006-12-16 18:31:23 +00:00
344ee28eb1 ChangeLog update 2006-12-16 01:31:02 +00:00
Andrei Zmievski
8a4e2184e0 Make convert_to_*() APIs return SUCCESS/FAILURE. 2006-12-16 00:21:41 +00:00
Andrei Zmievski
03547341ec __builtin_expect() exists only in GCC 3.0 and higher. 2006-12-15 22:47:09 +00:00
Andrei Zmievski
b78a38a2ae Make all macros (RETURN_*, RETVAL_*, ZVAL_*, add_*) that convert binary
strings to Unicode actually issues errors on failure. I'm surprised we
haven't done this already.
2006-12-15 22:35:23 +00:00
Andrei Zmievski
4d9e16e743 Fix potential buffer overflow in default conversion error handler. 2006-12-15 22:33:28 +00:00
Andrei Zmievski
a87ab2a879 Make utf8_conv stop on conversion errors when converting to UTF-16. 2006-12-15 22:30:44 +00:00
Andi Gutmans
76b38dc441 - MF 5.2 (put cookie in first place) 2006-12-15 17:17:57 +00:00
Dmitry Stogov
03ffc4de4e Added internal heap protection
. safe unlinking
  . cookies
  . canary protection (debug build only)
2006-12-15 13:25:47 +00:00
4967375aef ChangeLog update 2006-12-13 01:31:03 +00:00
Sara Golemon
16cd1e762c Bugfix# 39435: 'foo' instanceof bar gives invalid opcode error 2006-12-12 23:09:01 +00:00
179456f9c1 ChangeLog update 2006-12-12 01:31:15 +00:00
Andrei Zmievski
5a15a3c3f4 Clarify stream_encoding. 2006-12-11 21:48:07 +00:00
a1f9cfb653 ChangeLog update 2006-12-09 01:31:06 +00:00
Dmitry Stogov
f37ad2e146 Fixed bug #39775 ("Indirect modification ..." message is not shown) 2006-12-08 16:23:04 +00:00
Dmitry Stogov
595c45e532 Fixed possible failure 2006-12-08 12:47:58 +00:00
49b8d0cd37 ChangeLog update 2006-12-08 01:31:00 +00:00
Antony Dovgal
2122cf4fab initialize variables and make Coverity happy 2006-12-07 20:45:21 +00:00
Andrei Zmievski
6526e323a1 Apply Matt W's patch to only allow ASCII digits and not use u_digit(). 2006-12-07 18:56:25 +00:00
Andrei Zmievski
1ef43a02ee Guard against ambiguous 'else' clauses. 2006-12-07 18:19:21 +00:00
7d6583a064 ChangeLog update 2006-12-07 01:31:16 +00:00
Antony Dovgal
8f98226510 fix tests 2006-12-06 13:11:02 +00:00
Antony Dovgal
b8ad517526 add zend_u_strtod() implementation by Matt Wilmas
major speedup when using floats in Unicode mode
also fixes several problems with the current code
2006-12-06 12:25:29 +00:00
Antony Dovgal
d8e8eb4e08 destroy freelist before destroying the mutexes 2006-12-06 10:49:19 +00:00
Antony Dovgal
4789badd3a use BSD licensed implementation of double-to-string utilities instead of LGPL one
this patch also fixes thread safety issues in zend_strtod()
2006-12-06 09:50:28 +00:00
d0792dc615 ChangeLog update 2006-12-06 01:31:05 +00:00
Dmitry Stogov
3d5825bb3d Fixed bug #39721 (Runtime inheritance causes data corruption) 2006-12-05 19:04:51 +00:00
Antony Dovgal
07cbe3317a remove duplicating line 2006-12-05 12:55:38 +00:00
Dmitry Stogov
08f035bbac Removed unused zend_mm.* 2006-12-05 08:08:33 +00:00
Stanislav Malyshev
40b496d63f Merge from 5.2:
Improve tolower()-related functions on Windows and VC2005 by caching locale and using
tolower_l function.
2006-12-05 02:55:27 +00:00
09848fa0fc ChangeLog update 2006-12-05 01:31:09 +00:00
Dmitry Stogov
f595859918 Fixed bug #38274 (Memlimit fatal error sent to "wrong" stderr when using fastcgi) 2006-12-04 16:30:59 +00:00
2b16c2569a ChangeLog update 2006-12-02 01:31:01 +00:00
Dmitry Stogov
ef3df1e6ff Bug #39438 (Fatal error: Out of memory) 2006-12-01 20:02:00 +00:00
Dmitry Stogov
5b5b730c4c typo 2006-12-01 19:42:19 +00:00
Dmitry Stogov
fa6ab159a6 Fixed bug #39702 (php crashes in the allocator on linux-m68k) 2006-12-01 15:33:20 +00:00
Dmitry Stogov
bea2519575 Fixed buffer overflow. (Rob) 2006-12-01 14:57:44 +00:00
Dmitry Stogov
106c808d41 Fixed bug #39640 (Segfault with "Allowed memory size exhausted") 2006-12-01 13:54:49 +00:00
Dmitry Stogov
d935b44364 Fixed bug #39652 (Wrong negative results from memeory_get_usage()) 2006-12-01 11:40:23 +00:00
23757fce66 ChangeLog update 2006-12-01 01:31:01 +00:00
Antony Dovgal
b0f688006d fix test 2006-11-30 13:09:24 +00:00
58698c964c ChangeLog update 2006-11-29 01:31:10 +00:00
Antony Dovgal
afd3d27c5f resolve coverity issue #224 2006-11-28 21:19:58 +00:00
929123554a ChangeLog update 2006-11-25 01:31:23 +00:00
Antony Dovgal
63df6688b5 initialize CG(literal_type) using ZEND_STR_TYPE macro
add CG(literal_type) initialization in non-ZTS mode
fixes backticks operator
2006-11-24 11:36:40 +00:00
7f16662c6b ChangeLog update 2006-11-24 01:31:16 +00:00
Antony Dovgal
7d4abedf5a nullify opened_path and filename (when required)
fixes invalid reads with `php-cli -F <script>`
2006-11-23 22:04:32 +00:00
Dmitry Stogov
a44849cf0e Fixed bug #39534 (Error in maths to calculate of ZEND_MM_ALIGNED_MIN_HEADER_SIZE). (wharmby at uk dot ibm dot com) 2006-11-23 09:33:01 +00:00
Dmitry Stogov
6b2f3046e8 Fixed bug #39602 (Invalid session.save_handler crashes PHP) 2006-11-23 08:07:16 +00:00
3922d05797 ChangeLog update 2006-11-22 01:31:26 +00:00
Antony Dovgal
0052d291fc add test for some of builtin funcs 2006-11-21 11:11:25 +00:00
Antony Dovgal
43559f1b18 fix leak in get_extension_funcs() 2006-11-21 11:10:01 +00:00
Antony Dovgal
6983398b91 fix proto 2006-11-21 10:48:16 +00:00
f2a6b5ff00 ChangeLog update 2006-11-21 01:31:11 +00:00
Antony Dovgal
0e647693df fix leak in zend_register_functions()
this is very odd, but Zend MM said nothing about it..
2006-11-20 22:08:27 +00:00
fa94ed2bb2 ChangeLog update 2006-11-18 01:31:10 +00:00
Dmitry Stogov
57d22421db Unicode support.
Now the real UG(unicode) value is available during MINIT calls.
2006-11-17 10:48:53 +00:00
ce5812d198 ChangeLog update 2006-11-16 01:31:33 +00:00
Antony Dovgal
8043daedbb fix typo (patch by Mike Wallner) 2006-11-15 22:50:19 +00:00
Dmitry Stogov
7edaae4ebf typo 2006-11-15 17:53:39 +00:00
Antony Dovgal
7c08c95070 fix leak appearing when converting object to NULL
add test
2006-11-15 17:28:56 +00:00
Dmitry Stogov
cc134cef18 Fixed bug #39445 (Calling debug_backtrace() in the __toString() function produces a crash) 2006-11-15 16:05:26 +00:00
838419f864 ChangeLog update 2006-11-14 01:31:25 +00:00
Dmitry Stogov
eae5ec4197 Fixed incorrect heap corruptiuon detection code 2006-11-13 10:28:57 +00:00
55409461d2 ChangeLog update 2006-11-11 01:31:31 +00:00
Dmitry Stogov
706a0364e6 Unicode support 2006-11-10 14:21:13 +00:00
Dmitry Stogov
449e7d18a2 Start timiout thread on Windows only if necessary 2006-11-10 11:51:55 +00:00
Dmitry Stogov
df34e766b6 Zend Memory Manager Improvements
. use HeapAlloc() instead of VirtualAlloc()
. use "win32" storage manager (instead of "malloc") on Windows by default
2006-11-10 10:44:16 +00:00
0daf1284cd ChangeLog update 2006-11-10 01:31:22 +00:00
Antony Dovgal
e16db0f454 add two more unicode related macros 2006-11-09 23:50:47 +00:00
e6714ae698 ChangeLog update 2006-11-09 01:31:24 +00:00
Dmitry Stogov
86c0ed37c8 HashTable copying optimization (Matt Wilmas) 2006-11-08 16:02:29 +00:00
Dmitry Stogov
f8b3df2bf2 Fixed bug #39297 (Memory corryption because of indirect modification of overloaded array). 2006-11-08 13:38:44 +00:00
Dmitry Stogov
15aca2c17d Fixed bug #39344 (Unnecessary calls to OnModify callback routine for an extension INI directive). (wharmby at uk dot ibm dot com, Dmitry) 2006-11-08 11:04:42 +00:00
Sara Golemon
63c3ea2dcd Put zend_lookup_class_ex back into the API for BC. 2006-11-08 10:09:17 +00:00
157ace4f0e ChangeLog update 2006-11-08 01:31:28 +00:00
Ilia Alshanetsky
d5c7a2d9c6 MFB: Fixed bug #33282 (Re-assignment by reference does not clear the is_ref
flag)
2006-11-07 20:28:40 +00:00
97d10609bd ChangeLog update 2006-11-04 01:31:15 +00:00
d9419bc989 ChangeLog update 2006-11-02 01:31:07 +00:00
Johannes Schlüter
4b805aab5d - restoring init of the uni str which has been removed (patch by Pierre) 2006-11-01 20:04:19 +00:00
2b4e4159db ChangeLog update 2006-11-01 01:31:07 +00:00
Marcus Boerger
d675326a22 - Consistency of apply funcs, #39320 2006-10-31 22:05:56 +00:00
Marcus Boerger
f7600a7b67 - Fix issue with name mangling 2006-10-31 19:21:03 +00:00
b124d3c4b3 ChangeLog update 2006-10-31 01:31:15 +00:00
Dmitry Stogov
1bf9c4a45d Fixed bug #39304 (Segmentation fault with list unpacking of string offset) 2006-10-30 11:04:47 +00:00
34d0ffd03d ChangeLog update 2006-10-29 01:31:12 +00:00
Antony Dovgal
2ea0fcc651 fix build 2006-10-28 10:42:04 +00:00
26bdf07fbf ChangeLog update 2006-10-28 01:31:08 +00:00
Andrei Zmievski
75c272440e Turn doc comments into zstr strings with corresponding adjustments. 2006-10-27 21:22:05 +00:00
fabdfc0550 ChangeLog update 2006-10-27 01:31:13 +00:00
Antony Dovgal
53d94a9821 fix wrong function prototype (see bug #39260) 2006-10-26 09:28:44 +00:00
aca45de82a ChangeLog update 2006-10-25 01:31:04 +00:00
Andrei Zmievski
fbc37c81af Fix key length calculation. 2006-10-24 15:35:16 +00:00
Antony Dovgal
d5fbdc689a fix add_u_assoc_null() macro 2006-10-24 12:46:33 +00:00
8878fefeb6 ChangeLog update 2006-10-21 01:31:08 +00:00
Antony Dovgal
4a98596c90 rename REAL_KEY_SIZE() to USTR_BYTES() and move to zend_unicode.h
this macro is going to be actively used in Unicode version of OCI8 (and other extensions, probably)
2006-10-20 10:33:31 +00:00
b59fcf6572 ChangeLog update 2006-10-20 01:31:17 +00:00
Andrei Zmievski
ac73b4a6e5 Fix potential (and real) leaks due to bad macro writing. Grrr. 2006-10-19 20:54:48 +00:00
Andrei Zmievski
9d4d53515d Fix possible double macro expansion. 2006-10-19 18:27:35 +00:00
Antony Dovgal
15e479e892 fix invalid write 2006-10-19 10:02:34 +00:00
8c5bdbf452 ChangeLog update 2006-10-19 01:31:08 +00:00
Johannes Schlüter
38ea123751 - added missing return... 2006-10-18 17:03:26 +00:00
Johannes Schlüter
0e58baae93 - Fix #38465 (ReflectionParameter fails if default value is an access to self:: 2006-10-18 16:34:25 +00:00
a980840bb3 ChangeLog update 2006-10-18 01:31:14 +00:00
Andrei Zmievski
1e1f3efb02 Fix thread safety. 2006-10-17 22:15:19 +00:00
Andrei Zmievski
2602e49e65 Implement add_utf8_property_* API. 2006-10-17 17:56:42 +00:00
Dmitry Stogov
de613c8a1b Fixed incorrect parameter name coping 2006-10-17 10:43:37 +00:00
8a73fc9a3c ChangeLog update 2006-10-17 01:31:08 +00:00
Andrei Zmievski
6d38ea2988 Optimize ZEND_U_CASE_EQUAL() and move it to the header file. 2006-10-16 21:13:13 +00:00
Dmitry Stogov
0d7d1b7ffa Fixed bug #39140 (Uncaught exception may cause crash) 2006-10-16 11:13:20 +00:00
f1de0199c3 ChangeLog update 2006-10-14 01:31:14 +00:00
Andrei Zmievski
83e0dbb3d2 - Add an extra parameter to the cast_object handler that can be used by
various types as needed.
- Use that parameter to pass a specific converter for
  IS_UNICODE/IS_STRING types.
2006-10-13 14:52:19 +00:00
ba13b636e3 ChangeLog update 2006-10-13 01:30:58 +00:00
Dmitry Stogov
b907cd59d5 Make zend_memory_peak_usage() to be avalable even without --enable-memory-limit 2006-10-12 06:47:04 +00:00
3df7420fed ChangeLog update 2006-10-12 01:32:24 +00:00
Andrei Zmievski
97d0372249 Extend zend_fcall_info_args functions. (Patch from Mike Wallner) 2006-10-11 18:37:31 +00:00
Antony Dovgal
104c828662 initialize variable 2006-10-11 16:11:40 +00:00
f9a96f8ce9 ChangeLog update 2006-10-08 01:30:55 +00:00
Andrei Zmievski
d86524570f Hash functions for UTF-8 keys. 2006-10-07 17:34:19 +00:00
788f95587c ChangeLog update 2006-10-07 01:30:59 +00:00
Andrei Zmievski
f47955c66f Patch from Matt W to fix the case of hitting ERANGE too early. 2006-10-06 17:23:05 +00:00
Andrei Zmievski
706d7a3b55 Unicode string support for extension_loaded(). 2006-10-06 17:11:17 +00:00
Andrei Zmievski
de082072cf Unicode string support in get_extension_funcs(). 2006-10-06 17:05:22 +00:00
841a736681 ChangeLog update 2006-10-06 01:32:17 +00:00
Sara Golemon
64806e499e Preserve EG(return_value_ptr_ptr) when calling zend_execute_scripts() 2006-10-05 23:24:55 +00:00
Andrei Zmievski
32a2f348af This might not be necessary if we clean it all up ourselves. 2006-10-05 22:45:34 +00:00
Dmitry Stogov
301efee1cf Allow future extensibility without binary compatibility break 2006-10-05 08:09:12 +00:00
254e6a38eb ChangeLog update 2006-10-05 01:30:55 +00:00
Antony Dovgal
5ce3a350e4 add test for #39036 (reproducible with 5.1.6, but works fine in 5.2 and HEAD) 2006-10-04 13:35:31 +00:00
740309a54c ChangeLog update 2006-10-04 01:30:52 +00:00
Antony Dovgal
55de312ce2 throw a warning when doing modulus by 0 (fr #39027) 2006-10-03 17:54:32 +00:00
Sara Golemon
d666c05427 PHP6 Update for get_included_files() and export of path decode for Zend 2006-10-03 16:28:02 +00:00
Dmitry Stogov
e8ddcf1077 Speedup array/HashTable copying. (Matt W) 2006-10-03 11:10:54 +00:00
Dmitry Stogov
ea1cd51094 Fixed bug #39017 (foreach(($obj = new myClass) as $v); echo $obj; segfaults) 2006-10-03 09:05:35 +00:00
Dmitry Stogov
aaed3f9fcb Fixed memory leak (Nuno) 2006-10-03 07:31:10 +00:00
c88c6deeee ChangeLog update 2006-10-03 01:30:52 +00:00
Antony Dovgal
36b78b78a4 fix #39003 (__autoload() is called for type hinting) 2006-10-02 11:05:02 +00:00
365be9cd62 ChangeLog update 2006-10-01 01:30:51 +00:00
Ilia Alshanetsky
13a9ddb973 MFB: Added safety checks against integer overflow. 2006-09-30 17:17:31 +00:00
6084ba053b ChangeLog update 2006-09-30 01:31:05 +00:00
Andrei Zmievski
966d8022b9 Fix off-by-one error. 2006-09-29 20:59:26 +00:00
9ae218ef45 ChangeLog update 2006-09-29 01:30:57 +00:00
Antony Dovgal
e6ebe4dab3 new tests 2006-09-28 12:08:44 +00:00
Antony Dovgal
766c159460 add new tests 2006-09-28 11:45:55 +00:00
Dmitry Stogov
d746725744 Fixed wrong return value 2006-09-28 07:16:59 +00:00
e19c133571 ChangeLog update 2006-09-28 01:30:58 +00:00
Antony Dovgal
3408bafa32 use if() instead of ?: and avoid possible optimization problems 2006-09-27 15:40:09 +00:00
9a6366309c ChangeLog update 2006-09-27 01:30:54 +00:00
Dmitry Stogov
798d93c4da Fixed bug #38808 ("maybe ref" issue for current() and others) 2006-09-26 10:31:04 +00:00
Dmitry Stogov
59d0c16391 Fixed bug #38942 (Double old-style-ctor inheritance) 2006-09-26 07:55:54 +00:00
18e28ba12f ChangeLog update 2006-09-22 01:30:55 +00:00
Sara Golemon
3b24a795a6 Add missing function protos 2006-09-21 23:58:06 +00:00
036403114e ChangeLog update 2006-09-21 01:30:59 +00:00
Andrei Zmievski
7ff8b9b090 Bug fixes for substr_replace(). 2006-09-20 20:30:19 +00:00
f717a00c7b ChangeLog update 2006-09-20 01:31:03 +00:00
Dmitry Stogov
7aeb4421b7 Fixed bugs #34065 and #38623 (throw in foreach/switch causes memory leaks) 2006-09-19 21:36:00 +00:00
Andrei Zmievski
1efe216585 Use internal converter name to speed up instantiation. 2006-09-19 20:44:37 +00:00
Sara Golemon
3f56da6eba Add INI controlled default stream encoding (unicode.stream_encoding).
Add convenience function stream_defualt_encoding() for setting it.
2006-09-19 20:36:48 +00:00
Dmitry Stogov
128548a5c0 Disabled autoconversion of hash keys (from string to unicode) for PHP arrays 2006-09-19 10:38:31 +00:00
Dmitry Stogov
c0dbffaa3c Forgotten part of patch (Small optimization of ZEND_INIT_ARRAY/ZEND_ADD_ARRAY_ELEMENT) 2006-09-19 07:40:38 +00:00
Dmitry Stogov
70ad4607d7 ZTS fix 2006-09-19 07:39:25 +00:00
b874530ad3 ChangeLog update 2006-09-19 01:30:58 +00:00
Andrei Zmievski
81b83f327b More work on Unicode support in PCRE. When UG(unicode) is on, all
strings passed to PCRE have to be IS_UNICODE or IS_STRING in UTF-8
encoding. Failure to do so will result in unpredictable results.
2006-09-18 17:59:10 +00:00
Dmitry Stogov
9d55b3d3fc Small optimization of ZEND_INIT_ARRAY/ZEND_ADD_ARRAY_ELEMENT. (Nuno, Dmitry) 2006-09-18 14:35:37 +00:00
Dmitry Stogov
5bda51a5c0 Fixed non-specialized executor 2006-09-18 12:03:21 +00:00
0ca3729f73 ChangeLog update 2006-09-15 01:30:55 +00:00
Dmitry Stogov
5adb0b309f Reinamed variables to avoid name conflicts 2006-09-14 10:32:57 +00:00
Dmitry Stogov
a9f035d5c1 *** empty log message *** 2006-09-14 09:59:23 +00:00
Dmitry Stogov
1f12ada0f7 Added is_zend_mm() to allow runtime check for zend memory manager 2006-09-14 08:55:17 +00:00
e4086a79c3 ChangeLog update 2006-09-14 01:30:53 +00:00
Antony Dovgal
eec02cb1be fix tests 2006-09-13 14:00:44 +00:00
80460edba1 ChangeLog update 2006-09-13 01:30:57 +00:00
Dmitry Stogov
5574651edb Fixed bug #38772 (inconsistent overriding of methods in different visibility contexts) 2006-09-12 11:01:31 +00:00
424b469b8f ChangeLog update 2006-09-12 01:31:11 +00:00
Dmitry Stogov
9b222e6f07 fix 2006-09-11 17:18:47 +00:00
Andrei Zmievski
21bc25e025 Add a couple more UTF-8 functions. 2006-09-11 16:32:02 +00:00
Antony Dovgal
398a45429e fix #38779 (engine crashes when require()'ing file with syntax error through userspace stream wrapper) 2006-09-11 14:28:19 +00:00
Antony Dovgal
50222ced54 fix tests 2006-09-11 14:27:25 +00:00
Antony Dovgal
3aeebd120f add tests 2006-09-11 14:13:05 +00:00
Antony Dovgal
6c0d0217ca fix test 2006-09-11 08:10:03 +00:00
aee2284473 ChangeLog update 2006-09-09 01:31:01 +00:00
Andrei Zmievski
82ace06252 convert_to_string_with_converter_ex() 2006-09-08 17:19:42 +00:00
c20aae3e5d ChangeLog update 2006-09-07 01:30:54 +00:00
Dmitry Stogov
97fdcf0f3b Fixed php_admin* bypass by ini_restore() 2006-09-06 08:54:57 +00:00
Dmitry Stogov
2ea26c6570 Reverted last Ilia's patch (for #38579).
The patch didn't fix the bug and made new one.
2006-09-06 06:51:05 +00:00
1b7eded7ab ChangeLog update 2006-09-06 01:30:56 +00:00
Ilia Alshanetsky
2f0d258606 MFB: Fixed bug #38579 require_once/include_once optimization causes files
to be loaded multiple times.
2006-09-05 15:52:42 +00:00
146e04696c ChangeLog update 2006-09-05 01:30:56 +00:00
Dmitry Stogov
72594b81b8 Removed unreachable handlers 2006-09-04 13:59:07 +00:00
a49d277977 ChangeLog update 2006-09-01 01:30:54 +00:00
Dmitry Stogov
447cc0eb15 Show name of storage layer in case of initialization fault 2006-08-31 13:00:12 +00:00
73fbbb48ec ChangeLog update 2006-08-31 01:30:59 +00:00
Antony Dovgal
cb415ed1bf s/pinter/pointer/ 2006-08-30 22:29:17 +00:00
Antony Dovgal
d65b68d09f fix minor issue in autoload with unicode enabled 2006-08-30 12:32:20 +00:00
Antony Dovgal
33ad684e86 fix off-by-one in zend_fetch_dimension_address_inner() 2006-08-30 09:58:10 +00:00
7a3c936490 ChangeLog update 2006-08-30 01:30:51 +00:00
Antony Dovgal
be3e5292cd fix compile warning 2006-08-29 22:01:20 +00:00
939f60c618 ChangeLog update 2006-08-29 01:30:55 +00:00
Andrei Zmievski
11ca9006a2 Add APIs for UTF-8 strings (common with XML, PCRE, etc) 2006-08-28 17:14:49 +00:00
Antony Dovgal
dd9165d60a fix #38624 (Strange warning when incrementing an object property and exception is thrown from __get method) 2006-08-28 10:25:49 +00:00
b823e3882f ChangeLog update 2006-08-26 01:31:05 +00:00
Andrei Zmievski
dd2e2abc9c Fix some API definitions. 2006-08-25 20:47:23 +00:00
e84d563306 ChangeLog update 2006-08-25 01:30:59 +00:00
Dmitry Stogov
6832a53898 Fixed bug #38315 (Constructing in the destructor causes weird behaviour) 2006-08-24 09:42:51 +00:00
2d8596e593 ChangeLog update 2006-08-24 01:30:51 +00:00
Dmitry Stogov
aaa3ecee8a Fixed bug #38265 (heap corruption) 2006-08-23 13:01:04 +00:00
790050b6d7 ChangeLog update 2006-08-23 01:30:59 +00:00
Dmitry Stogov
b590503bdf Fixed "win32" storage manager 2006-08-22 05:54:35 +00:00
91da517692 ChangeLog update 2006-08-20 01:31:00 +00:00
c3d1deca0b ChangeLog update 2006-08-16 01:30:56 +00:00
Antony Dovgal
9ea866fab4 apply more correct fix for bug #38461 2006-08-15 20:30:26 +00:00
Antony Dovgal
e17c15ba03 fix #38461 (setting private attribute with __set() produces segfault) 2006-08-15 13:19:00 +00:00
Antony Dovgal
946a29753c add test 2006-08-15 08:58:24 +00:00
57aa016750 ChangeLog update 2006-08-15 01:30:54 +00:00
Andrei Zmievski
df345b9e33 Remove UTODO's -- this is handled during name mangling/unmangling. 2006-08-14 21:09:30 +00:00
Andrei Zmievski
2701f53af6 add_next_index_zstr[l]() 2006-08-14 21:05:22 +00:00
Andrei Zmievski
180e98f5cb Typo. 2006-08-14 20:45:32 +00:00
Andrei Zmievski
ea7ab72fe7 Set T_arg_type to default string type if we were not able to determine
it from the args.
2006-08-14 20:40:26 +00:00
66fc339e97 ChangeLog update 2006-08-11 01:30:59 +00:00
f45563fc01 ChangeLog update 2006-08-10 01:30:56 +00:00
Andrei Zmievski
a90da20623 Make params API sound less like Raymond Babbitt. 2006-08-09 17:37:29 +00:00
f16344fd49 ChangeLog update 2006-08-09 01:30:57 +00:00
Andrei Zmievski
9320e167f2 Adjust zend_get_unified_string_type() to give correct types. 2006-08-08 17:36:55 +00:00
Andrei Zmievski
520655608a Should be slightly faster to use U16_NEXT here. 2006-08-08 17:36:20 +00:00
Antony Dovgal
f5715ee86f implement zend_unicode_to_string() and zend_string_to_unicode()
part #1 (of 2)
2006-08-08 16:58:06 +00:00
Antony Dovgal
7010fd0005 there is no realiable way to detect memrchr() presence because of a mess in glibc
so let's use our own implementation
2006-08-08 10:53:06 +00:00
Antony Dovgal
c022ca263b %s -> %v
ce names are in Unicode
2006-08-08 10:10:26 +00:00
Antony Dovgal
a3c3b91b33 add zend_memrchr() 2006-08-08 09:40:50 +00:00
eba1941974 ChangeLog update 2006-08-08 01:30:51 +00:00
Marcus Boerger
2916886523 - Speling 2006-08-08 00:36:19 +00:00
Marcus Boerger
5e9acea82e - Fixed Bug #38064 ignored constructor visibility 2006-08-07 23:16:20 +00:00
Dmitry Stogov
c021824fc1 Fixed bug #38287 (static variables mess up global vars) 2006-08-07 15:15:36 +00:00
53d345a347 ChangeLog update 2006-08-05 01:31:02 +00:00
Andrei Zmievski
dda059708f Add add_assoc_zstr_ex() and related. 2006-08-04 21:05:59 +00:00
Andrei Zmievski
cb15b7d5ae Add macros to be able to initialize/return values based on zstr. 2006-08-04 18:08:31 +00:00
Andrei Zmievski
aa398bf8ce One fewer walks needed. 2006-08-04 18:02:20 +00:00
Andrei Zmievski
2bfe0a8cbd Scan through all the modifiers at once, setting flags. 2006-08-04 17:02:17 +00:00
Andrei Zmievski
fd39d28d17 Fix '&' handling. (patch by Rob R) 2006-08-04 16:58:29 +00:00
Derick Rethans
b2d717667b - MFB: Bison 2.3 is working as well. 2006-08-04 06:49:28 +00:00
f98ae45bb3 ChangeLog update 2006-08-04 01:30:52 +00:00
Antony Dovgal
9625469a44 make it consistent 2006-08-03 10:57:13 +00:00
Antony Dovgal
60feb94bf6 improve error message 2006-08-03 10:52:15 +00:00
b1dd60af02 ChangeLog update 2006-08-03 01:30:51 +00:00
Andrei Zmievski
f34e1baa9f Make string comparison functions conver to unicode or printable strings
depending on unicode.semantics and do the right thing.
2006-08-02 20:31:40 +00:00
Andrei Zmievski
433c40c3d2 Add '&' modifier (for 's' type) that will apply the specified converter
during conversion of Unicode strings.
2006-08-02 17:36:28 +00:00
d85822062a ChangeLog update 2006-08-02 01:30:59 +00:00
Andrei Zmievski
974f55ace3 Fix off-by-one error in zend_case_fold_string(). 2006-08-01 21:49:57 +00:00
Andrei Zmievski
8a32effd2c Rewrite IS_LONG, IS_DOUBLE, and IS_RESOURCE to IS_UNICODE conversion to
use custom functions instead of u_sprintf() which is terribly slow at
the moment (for numbers). Now long-to-unicode is only 8% slower than
long-to-binary and double-to-unicode is actually 6% faster.
2006-08-01 17:47:24 +00:00
6320d6329b ChangeLog update 2006-07-28 01:30:51 +00:00
Dmitry Stogov
1e71620e8f Fixed bug #38234 (Exception in __clone makes memory leak) 2006-07-27 10:44:19 +00:00
Dmitry Stogov
3f51a6970d Fixed mess with semantic of zend_normalize_identifier()'s return value (SUCCESS != 1) 2006-07-27 09:33:44 +00:00
Dmitry Stogov
0eb0282912 Fixed bug #38047 ("file" and "line" sometimes not set in backtrace from inside error handler) 2006-07-27 08:20:52 +00:00
feaeb45937 ChangeLog update 2006-07-27 01:30:50 +00:00
Dmitry Stogov
1ab16de084 Fixed bug #38220 (Crash on some object operations) 2006-07-26 15:29:39 +00:00
Dmitry Stogov
b9915a9264 Fixed bug #38211 (variable name and cookie name match breaks script execution) 2006-07-26 09:24:50 +00:00
Dmitry Stogov
e8a718a5c0 Fixed crash of DEBUG version on SPARC CPU because of unaligned pointers. 2006-07-26 08:08:31 +00:00
e18934cdd4 ChangeLog update 2006-07-26 01:30:56 +00:00
Dmitry Stogov
61d39cf1c1 Changed memory_get_usage() and memory_get_peak_usage(). Optional boolean argument allows get memory size allocated by emalloc() (by default) or real size of memory allocated from system. 2006-07-25 13:41:08 +00:00
Derick Rethans
0d1957e7dc - MFB: Fixed typo 2006-07-25 06:50:26 +00:00
3d9f3f6221 ChangeLog update 2006-07-25 01:30:56 +00:00
Marcus Boerger
058bdbf708 - Fix off by one copy'n'paste error 2006-07-25 00:01:40 +00:00
Marcus Boerger
48b438f898 - Yet another rproblematic case with mangled properties 2006-07-24 22:34:44 +00:00
Marcus Boerger
617a18fc40 - Fix for #34505 and repated (improved version of what is in 5.2, 5.1) 2006-07-24 17:51:41 +00:00
Dmitry Stogov
a1c0009d14 Fixed memory leaks detection 2006-07-24 08:15:42 +00:00
Dmitry Stogov
a6b67676e0 Test for bug #38146 (Cannot use array returned from foo::__get('bar') in write context) 2006-07-24 07:44:06 +00:00
76e91003bf ChangeLog update 2006-07-23 01:30:49 +00:00
foobar
bca80ac698 - Fixed bug #38183 (disable_classes=Foobar causes disabled class to be called Foo) 2006-07-22 15:39:22 +00:00
458c7f170c ChangeLog update 2006-07-22 01:30:53 +00:00
Andrei Zmievski
8ee838b4ec It's not legacy - it's binary. 2006-07-21 23:37:15 +00:00
Dmitry Stogov
a7cfcd6b35 MTH: Fixed bug #37144 (PHP craches trying to assign into property of dead object) 2006-07-21 11:13:24 +00:00
Dmitry Stogov
933e8c0be0 Changed error message (E_ERROR -> E_NOTICE) in case of indirect modification of overloaded property. 2006-07-21 10:32:41 +00:00
Dmitry Stogov
881258ad6e Fixed wrong "type" argument to read_property() handler 2006-07-21 08:39:43 +00:00
2e07bf1ce3 ChangeLog update 2006-07-21 01:30:51 +00:00
Marcus Boerger
8619c361cc - Add new unicode functions: add_u_assoc_*[_ex]() which allow to add values
using a unicode key.
2006-07-20 21:16:08 +00:00
Andrei Zmievski
e9a9a26e7e Rewrite array_map() to use params API with fci cache and mark it with U. 2006-07-20 20:54:23 +00:00
Antony Dovgal
402cbc1db9 no need to return bool and false in the same time =) 2006-07-20 07:30:14 +00:00
0d65d72f77 ChangeLog update 2006-07-20 01:30:54 +00:00
Andrei Zmievski
0e05886a2e Fix usage of 'return_null' option in parameter parsing. 2006-07-19 18:21:04 +00:00
Andrei Zmievski
80839710f1 Make 't' and 'T' use zstr for storage type. 2006-07-19 17:51:49 +00:00
Andrei Zmievski
f45c16cb3c Add '+' varargs specifier that requires at least one arg. 2006-07-19 17:38:47 +00:00
Antony Dovgal
93094e525b MFB: fetch tsrm_ls, don't use it uninitialized 2006-07-19 06:33:07 +00:00
Andrei Zmievski
4bf31abbf4 Initialize some vars. 2006-07-19 01:51:20 +00:00
35ebfabbd2 ChangeLog update 2006-07-19 01:30:52 +00:00
Andrei Zmievski
bbd3cd2743 Implement varargs parameter parsing. See README for examples. 2006-07-18 22:07:20 +00:00