Commit Graph

5948 Commits

Author SHA1 Message Date
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
Andrei Zmievski
0667864631 Callable checks and class fetching and lookup should support identifer
normalization now. (Marcus, Andrei)
2006-07-18 17:52:45 +00:00
Andi Gutmans
c32b733940 - Capture Dmitry's Zend MM email for later reference 2006-07-18 16:54:37 +00:00
Antony Dovgal
4509fb33c5 fix build on platforms without mremap() 2006-07-18 15:41:47 +00:00
Dmitry Stogov
6687f0377b New memory manager 2006-07-18 09:08:06 +00:00
Antony Dovgal
6bcb0c9ed5 fix logic 2006-07-18 08:57:26 +00:00
Antony Dovgal
0d088b15b7 fix DVAL_TO_LVAL() macro, which doesn't seem to work correctly on AIX & GCC < 3.5 2006-07-18 08:16:18 +00:00
f645ccf699 ChangeLog update 2006-07-18 01:31:06 +00:00
Andrei Zmievski
fdf280b41b - Upgrade usort() to support Unicode (including valid Unicode callbacks).
- Make usort() use 'f' specifier for function call info/cache.
2006-07-17 20:52:12 +00:00
73746f8fa9 ChangeLog update 2006-07-16 01:30:53 +00:00
Marcus Boerger
607ca7baf6 - Provide defined value for autoload flag 2006-07-15 19:16:19 +00:00
07e007f404 ChangeLog update 2006-07-15 01:30:57 +00:00
Antony Dovgal
c7639e9e19 add USTR_VAL() access zstr value 2006-07-14 10:31:32 +00:00
4fcd7e4c1e ChangeLog update 2006-07-14 01:30:53 +00:00
Andrei Zmievski
2fbc36496f - Let the caller output a warning instead of having
zend_get_unified_string_type() do it.
- Mark a few more functions are Unicode compatible.
2006-07-13 21:27:48 +00:00
1e9e63e56c ChangeLog update 2006-07-13 01:31:09 +00:00
Antony Dovgal
4343311203 get rid of more "might be uninitialized" warnings 2006-07-12 21:14:11 +00:00
Antony Dovgal
527f93f25d make sure return_value_used is always initialized 2006-07-12 21:07:07 +00:00
Antony Dovgal
90d62b46a0 initialize EG(exit_status) 2006-07-12 21:03:07 +00:00
Andrei Zmievski
b8e488ecd5 No need for TSRMLS_FETCH(). 2006-07-12 19:34:55 +00:00
Andrei Zmievski
2c8398fe81 Implement convert_to_unicode_with_converter() and adjust zval_* APIs. 2006-07-12 17:35:06 +00:00
Andrei Zmievski
ed77c07a35 Commit Sara's patch for supporting filesystem enccoding in
include/require.
2006-07-12 17:04:13 +00:00
Antony Dovgal
1fb6a441d7 fix argument parsing utilities
test before commit?
2006-07-12 10:13:13 +00:00
Dmitry Stogov
f5a2224ca3 Fixed bug #36759 (Objects destructors are invoked in wrong order when script is finished) 2006-07-12 07:54:18 +00:00
Sara Golemon
f541962338 Fix typo/Syntax error 2006-07-12 04:20:02 +00:00
516df2ce97 ChangeLog update 2006-07-12 01:30:53 +00:00
Andrei Zmievski
a1fcfe3693 Remove unused 'y' specifier. 2006-07-11 22:53:10 +00:00
Andrei Zmievski
b41169d4e7 Rename to a more explanatory macro. 2006-07-11 16:59:42 +00:00
Dmitry Stogov
b52137a828 Fixed memory leak in case of exception in iterator callbacks in 'foreach(new Iterator()...' (spl/tests/iterator_047.phpt). 2006-07-11 08:52:44 +00:00
0395649b41 ChangeLog update 2006-07-11 01:31:00 +00:00
Andrei Zmievski
637f602822 Optimize zero-arg case for parameter parsing. No more need for manual
checks.
2006-07-10 23:06:33 +00:00
Andrei Zmievski
78f5e9f0a1 Include uclean.h header. 2006-07-10 23:06:17 +00:00
Antony Dovgal
b062531746 nuke unused variable 2006-07-10 13:53:47 +00:00
ce4c6d1657 ChangeLog update 2006-07-10 01:30:51 +00:00
Marcus Boerger
5fc72b98fa - Add missing test name prefix 2006-07-10 00:35:24 +00:00
Marcus Boerger
97b35cabb0 - Drop unused var 2006-07-10 00:32:23 +00:00
Marcus Boerger
871395174b - Add new test 2006-07-10 00:10:14 +00:00
Marcus Boerger
032dfa1bc4 - Fix issues with __get() returning arrays (might need to be revised) 2006-07-10 00:07:36 +00:00
Marcus Boerger
2de6065591 - Fixed Bug #37811 define not using toString on objects 2006-07-09 22:40:10 +00:00
Marcus Boerger
3173828d9e - Reword comment 2006-07-09 18:03:17 +00:00
Marcus Boerger
9de66765b8 - Fix issue with comparing objects with objects 2006-07-09 18:01:42 +00:00
Marcus Boerger
2c6b8329e7 - Drop dead code 2006-07-09 17:11:32 +00:00
Marcus Boerger
f94e3cc3ba - Add new test 2006-07-09 17:02:34 +00:00
Marcus Boerger
93a1d862f8 - Fix comparision edgecases involving objects (Tony, Marcus)
- Use ZVAL_LONG() where appropriate
2006-07-09 16:57:35 +00:00
Marcus Boerger
a37f9719e2 - Fix test 2006-07-09 16:56:07 +00:00
86c132acb9 ChangeLog update 2006-07-07 01:30:57 +00:00
Antony Dovgal
de23c325e9 add test 2006-07-06 16:17:12 +00:00
Sara Golemon
aee52fa3ea Silence FETCH_OBJ_IS / undefined notices 2006-07-06 15:28:05 +00:00
816d280580 ChangeLog update 2006-07-06 01:30:52 +00:00
Antony Dovgal
cbeedda2db export zend_std_get_constructor() 2006-07-05 11:41:09 +00:00
Antony Dovgal
636e7be681 improve error messages 2006-07-05 11:38:13 +00:00
58b222b625 ChangeLog update 2006-06-29 01:31:01 +00:00
Andrei Zmievski
619350f27c Rename unicode_semantics to unicode.semantics. 2006-06-28 14:13:13 +00:00
b4b3b66f4c ChangeLog update 2006-06-28 01:30:54 +00:00
Antony Dovgal
40a9bb96a6 add new tests 2006-06-27 21:09:50 +00:00
Antony Dovgal
5a816e0f20 no need to throw E_ERROR here, E_WARNING is more than enough 2006-06-27 19:58:27 +00:00
2a36d0eea6 ChangeLog update 2006-06-23 01:30:48 +00:00
Antony Dovgal
4c9b3450df fix typo 2006-06-22 21:24:12 +00:00
cedefd12d5 ChangeLog update 2006-06-22 02:29:26 +00:00
Andrei Zmievski
e875205714 Implement user conversion error handler support. Works as normal error
handler, in that it can return false to make the default one take over.
Handler signature is:
  user_handler($direction, $encoding, $char_byte, $offset, $message)

Also removed support for using exceptions in default error handler.
2006-06-21 20:17:21 +00:00
Andrei Zmievski
37972451f8 Implement unicode_set_error_handler() / unicode_restore_error_handler().
The error handler doesn't do anything yet. (vaporware)
2006-06-20 23:00:02 +00:00
Andrei Zmievski
5e64063b1c Plug memory leak in set_exception_handler(). 2006-06-20 22:50:49 +00:00
Antony Dovgal
59e16e52de init variables 2006-06-20 13:28:02 +00:00
Antony Dovgal
a896c54e2f fix tests 2006-06-20 12:50:52 +00:00
Marcus Boerger
55086233ce - Arginfo fix (Hannes) 2006-06-13 20:56:52 +00:00
Dmitry Stogov
2cbde06400 Added automatic module globals management. 2006-06-13 13:11:42 +00:00
Stefan Esser
08e355e39e Added hook for compile_string() 2006-06-13 12:56:20 +00:00
Marcus Boerger
9b29f1a3f4 - Fix memleaks (by nuno) 2006-06-12 22:48:46 +00:00
Andrei Zmievski
8eb6c59e10 Be more explicit. 2006-06-12 17:06:39 +00:00
Dmitry Stogov
4ef9b25370 Proper fix for bug #37707 ("clone $x" must call __clone() enven if result value is not used) 2006-06-08 08:56:47 +00:00
Dmitry Stogov
de90af4ddc Wrap "wrong" unreachable code with "#if 0" 2006-06-08 08:38:11 +00:00
Ilia Alshanetsky
72a4a1362a MFB: Fixed bug #37707 clone without assigning leaks memory 2006-06-07 13:43:13 +00:00
Marcus Boerger
09cbc2479e - Regenerated after zend_vm_def.h change 2006-06-07 09:25:04 +00:00
Marcus Boerger
646a613ebf - Fix issue with interfaces being inherited multiple times 2006-06-07 09:23:58 +00:00
Marcus Boerger
f2a8d8cb83 - Fix issue with interfaces being inherited multiple times 2006-06-07 09:20:02 +00:00
762603f66c ChangeLog update 2006-06-07 05:32:04 +00:00
Antony Dovgal
35949de5b1 revert by Andi's request 2006-06-06 14:16:53 +00:00
Antony Dovgal
65d8dabdd0 fix test 2006-06-06 11:34:40 +00:00
Antony Dovgal
4bf982eba4 do not allow to implement the same interface twice
add tests
2006-06-06 10:02:28 +00:00
ddee780752 ChangeLog update 2006-06-06 05:31:56 +00:00
f8739f4496 ChangeLog update 2006-06-05 05:31:56 +00:00
Marcus Boerger
45c1713762 - Fix function flag check 2006-06-04 10:23:25 +00:00
a89e7447bf ChangeLog update 2006-06-04 05:31:56 +00:00
Marcus Boerger
3350fd0fd1 - Revert - Needs further discussing 2006-06-03 11:41:29 +00:00
Marcus Boerger
c870888d06 - Printable is supposed to return nativ/unicode depending on ini setting 2006-06-03 11:01:40 +00:00
fae653bf48 ChangeLog update 2006-06-03 05:31:59 +00:00
Dmitry Stogov
916a317385 SAPI globals are destroied at this point and reporting errors about memory leaks
can cause crash.
2006-06-02 13:31:38 +00:00
136d3c6fbe ChangeLog update 2006-06-02 05:31:58 +00:00
Antony Dovgal
de4a8eed86 add new tests 2006-06-01 11:57:39 +00:00
Antony Dovgal
57566a78b5 throw a warning when using invalid offset types with strings 2006-06-01 11:56:23 +00:00
e24b4215ea ChangeLog update 2006-06-01 05:31:55 +00:00
Antony Dovgal
3a4028c39e fix error message in Unicode mode 2006-05-31 18:59:42 +00:00
Antony Dovgal
8d9ad7511d add more tests 2006-05-31 18:58:27 +00:00
Antony Dovgal
1fdb254591 add tests for new E_FATALs 2006-05-31 14:55:16 +00:00
Dmitry Stogov
4e662470f7 Keeping consistent arg_stack during arguments freeing (Exception from destructor may use inconsistent arg_stack for backtrace). 2006-05-31 13:02:15 +00:00
Dmitry Stogov
75fac72dc5 Support for nested exceptions and fatal errors in destructors 2006-05-31 12:59:45 +00:00
988acbf86a ChangeLog update 2006-05-31 05:31:57 +00:00
Marcus Boerger
1a76b61bef - Fix test logic 2006-05-30 23:10:55 +00:00
Marcus Boerger
d33e4dfe1e - WS 2006-05-30 19:40:19 +00:00
0389fb190d ChangeLog update 2006-05-30 05:31:57 +00:00
Antony Dovgal
2acd363bbe there is no ce at this point, revert this line to its previous state
See also: http://news.php.net/php.zend-engine.cvs/4931
2006-05-29 21:28:15 +00:00
Marcus Boerger
17912b4f1e - Bugfix #37632 (Protected method access problem) 2006-05-29 19:57:43 +00:00
7ed1649017 ChangeLog update 2006-05-29 05:31:56 +00:00
Johannes Schlüter
80cff030da - Fix printf modifier 2006-05-28 19:45:02 +00:00
a256df46bc ChangeLog update 2006-05-28 05:31:56 +00:00
Marcus Boerger
5925a26275 - Take care of refcounting in zend_fcall_info_*() functions
- Add docu
# I know it is unpopular to add docu here but i think we should add more
2006-05-27 19:40:06 +00:00
Marcus Boerger
f93bf1007a - WS 2006-05-27 19:04:16 +00:00
Johannes Schlüter
341ffb3f3d - Fix #37614 (Class name lowercased in error message) 2006-05-27 17:58:50 +00:00
ec0c3e853f ChangeLog update 2006-05-27 05:31:57 +00:00
Marcus Boerger
9265545992 - Fix bug #37212 (Access to protected property of common base class)
By adding "zend_class_entry *ce" to struct zend_property_info;
# Besides closing the bug this patch allows to optimize a bunch of
# property handling optimizations. I need to find out what all can be
# optimized. All other tests relevant to class handling still PASS.
2006-05-27 02:12:43 +00:00
Marcus Boerger
ffc4fbb91f - There are no abstract static methods in classes, use interfaces 2006-05-27 01:56:42 +00:00
ad466c9e7c ChangeLog update 2006-05-26 05:31:57 +00:00
Sara Golemon
a228b7f675 Fix ZTS build, call with TSRMLS_CC not DC 2006-05-26 04:22:46 +00:00
Marcus Boerger
cc56405cb9 - Sync error messages and simplify error message generation code 2006-05-26 00:26:45 +00:00
Marcus Boerger
9114bc25c3 - Ease writing functions that deal with php function 'pointers' 2006-05-25 22:20:13 +00:00
Antony Dovgal
34126e4a64 MFB: fix error messages when converting objects to other types 2006-05-25 10:34:01 +00:00
Dmitry Stogov
7e59bc4d89 Fixed bug #37558 (timeout functionality doesn't work after a second PHP starup on the same thread). (p dot desarnaud at wanadoo dot fr) 2006-05-25 07:23:38 +00:00
b549e5b503 ChangeLog update 2006-05-24 05:31:57 +00:00
Marcus Boerger
30bc5adf3b - Handle NULL in C argument parsing correct 2006-05-23 22:21:52 +00:00
Sebastian Bergmann
9ac660b72e Add bison 2.2 to the list of supported versions. 2006-05-23 11:10:54 +00:00
9b35a2aad8 ChangeLog update 2006-05-22 05:31:58 +00:00
Marcus Boerger
223dce98a5 - Improve error messages (missing unicode todo) 2006-05-21 12:39:03 +00:00
Marcus Boerger
7628f08017 - Improve error messages (part 2) 2006-05-21 12:38:28 +00:00
Marcus Boerger
426b40fc77 - Improved error messages 2006-05-21 11:23:35 +00:00
cdcc0e2633 ChangeLog update 2006-05-21 05:31:53 +00:00
Marcus Boerger
7c3ffb2056 - Z_LVAL is a long so use %ld 2006-05-20 20:50:24 +00:00
Antony Dovgal
e697da651c fix the typo before everybody forgets about it 2006-05-20 19:08:25 +00:00
Marcus Boerger
b7315f749c - Better error message in case of an exception from a dtor while an
exception is already pending
2006-05-20 18:32:33 +00:00
Marcus Boerger
a871b842f8 - Fix warning 2006-05-20 15:38:36 +00:00
Marcus Boerger
b850abcb82 - Do not use the protection at this place, we would need another object
shutdown state (e.g. destructed == 2). That's probbaly too much.
2006-05-20 10:18:17 +00:00
Marcus Boerger
8e42a84335 - Destructors must not be called twice 2006-05-20 09:51:41 +00:00
Marcus Boerger
3a752ce669 - Should be static and be called (comitted wrong version) 2006-05-20 09:11:50 +00:00
Marcus Boerger
207846259d - Add new tests
# Now who finds the error in php code?
2006-05-20 09:08:00 +00:00
10163622cc ChangeLog update 2006-05-20 05:31:54 +00:00
Dmitry Stogov
6f9a24e4e2 Fixed random crashes in ZTS mode becouse of uninitialized EG(modified_ini_directives). 2006-05-19 15:39:36 +00:00
Dmitry Stogov
ab9e070bbf Optimized zend_try/zend_catch macroses (eliminated memcpy()) 2006-05-19 06:11:02 +00:00
7324a30e8d ChangeLog update 2006-05-19 05:31:56 +00:00
Marcus Boerger
37561705a0 - Fix error message in unicode mode 2006-05-18 21:14:40 +00:00
7bb6f3ea59 ChangeLog update 2006-05-18 05:31:54 +00:00
Antony Dovgal
fe94855983 change argument name, it should be "object" not "property" 2006-05-17 14:28:31 +00:00
Ilia Alshanetsky
2639d7e6d8 Fixed bug #35512 (Lack of read permission on main script results in
E_WARNING rather then E_ERROR).
2006-05-17 13:28:20 +00:00
cccca0943a ChangeLog update 2006-05-16 05:31:53 +00:00
Dmitry Stogov
61806b7b03 Added test 2006-05-15 16:30:37 +00:00
Dmitry Stogov
fb1a172cae Optimized require_once/include_once (eliminated fopen() on second usage) 2006-05-15 15:31:50 +00:00
Dmitry Stogov
1985424c4d Optimized request shutdown sequence to iterate only over modified ini directives 2006-05-15 14:53:47 +00:00
9d2828f16f ChangeLog update 2006-05-15 05:31:56 +00:00
b7c3e4312c ChangeLog update 2006-05-14 05:31:55 +00:00
Marcus Boerger
601523f22d - Support __tostring() in argument parsing 2006-05-13 10:18:12 +00:00
e7e50d52f8 ChangeLog update 2006-05-13 05:31:53 +00:00
Derick Rethans
f3de1a5273 - Added tests for BC breaking changes. 2006-05-12 10:02:13 +00:00
058ddb8f65 ChangeLog update 2006-05-12 05:31:59 +00:00
Marcus Boerger
d588eb2012 - Drop a few superflous if conditions (now the generated file) 2006-05-11 21:12:27 +00:00
Marcus Boerger
623df04877 - Drop a few superflous if conditions 2006-05-11 21:11:54 +00:00
Andrei Zmievski
f1a98a1d52 Adjust API for scanning INI files as UTF-8. 2006-05-11 18:22:09 +00:00
cf9dd95f05 ChangeLog update 2006-05-11 05:31:54 +00:00
Marcus Boerger
ca7f2d282c - Fix tests 2006-05-10 22:50:48 +00:00
Marcus Boerger
82a538c4fa - Enforece rule of disallowing throw in __toString() 2006-05-10 21:11:48 +00:00
Marcus Boerger
2dc783ab36 - MFB missing initialization 2006-05-10 21:04:40 +00:00
2d509493f1 ChangeLog update 2006-05-10 05:31:56 +00:00
Marcus Boerger
6c0c9f098f - Methods have flags 2006-05-09 22:12:50 +00:00
Marcus Boerger
482d57d5a3 - zend_spprintf() is actually used elsewhere in the engine 2006-05-09 22:09:49 +00:00
Marcus Boerger
4bfc5ff54c - MFB WS/CS, zend_spprintf() must not be exported 2006-05-09 21:30:11 +00:00
Marcus Boerger
ef855827e3 - MFB Missing check 2006-05-09 21:28:47 +00:00
Marcus Boerger
0638c67dab - MFB: WS 2006-05-09 21:26:39 +00:00
111d608ff1 ChangeLog update 2006-05-06 05:31:52 +00:00
Dmitry Stogov
30ff22ca47 Fixed bug #37251 (deadlock when custom error handler is to catch array type hint error). 2006-05-05 08:04:55 +00:00
90941d8111 ChangeLog update 2006-05-05 05:31:54 +00:00
Andrei Zmievski
88b15b79a2 Don't use fixed size buffer in zend_uchar_from_uname(); 2006-05-04 21:44:54 +00:00
Andrei Zmievski
d72d277d32 Oops again. 2006-05-04 21:29:21 +00:00
Andrei Zmievski
7009fb94fe Oops. 2006-05-04 21:23:53 +00:00
Andrei Zmievski
534cad7064 Add a global ASCII connverter, macros to return single codepoints
(UCHAR32), and zend_unicode_to_ascii() function.
2006-05-04 21:22:17 +00:00
d3ef3ced43 ChangeLog update 2006-05-03 05:31:53 +00:00
Dmitry Stogov
2b1e0a8339 Fixed possible crash in highlight_string() (proper place) 2006-05-02 15:49:44 +00:00
d936c5c091 ChangeLog update 2006-04-22 05:31:55 +00:00
Andrei Zmievski
fae915844b Happy, Pierre? 2006-04-21 16:58:14 +00:00
Andrei Zmievski
f096990ea0 Add:
* zend_objects_store_add_ref_by_handle()
 * zend_objects_store_del_ref_by_handle()
 * zend_objects_store_get_object_by_handle()
2006-04-21 16:36:38 +00:00
bb90b758f4 ChangeLog update 2006-04-21 05:31:54 +00:00
Andrei Zmievski
16c55fb25a Move to refcounted implementation of collators. 2006-04-20 21:56:43 +00:00
Dmitry Stogov
3788e9054a Test added 2006-04-20 07:32:17 +00:00
bcf5faf095 ChangeLog update 2006-04-20 05:31:50 +00:00
Dmitry Stogov
39a5677cf3 Fixed cleanup dependent on uninitialized value 2006-04-19 10:29:46 +00:00
6937e71720 ChangeLog update 2006-04-19 05:31:51 +00:00
Sara Golemon
c581700782 Fix ZTS build 2006-04-18 18:57:13 +00:00
Antony Dovgal
a264a5aca3 binary strings exist only in unicode mode 2006-04-18 17:10:30 +00:00
d10e03c482 ChangeLog update 2006-04-16 05:31:54 +00:00
Antony Dovgal
ca715a05e5 MF51: fix #37062 (compile failure on ARM architecture) 2006-04-15 12:54:26 +00:00
ffe27d2dbe ChangeLog update 2006-04-15 05:31:50 +00:00
Antony Dovgal
41f4e16075 make it consistent with the other ones 2006-04-14 21:06:36 +00:00
ef59df70a4 ChangeLog update 2006-04-14 05:31:53 +00:00
Dmitry Stogov
a2a69a3ba2 Fixed bug #36513 (comment will be outputed in last line) 2006-04-13 13:48:40 +00:00
Dmitry Stogov
0699fdfb4f Fixed test 2006-04-13 06:05:16 +00:00
f3514eae3b ChangeLog update 2006-04-13 05:31:51 +00:00
Dmitry Stogov
ec12098c3b Fixed bug #37046 (foreach breaks static scope) 2006-04-12 11:38:09 +00:00
Dmitry Stogov
1681bd494c Fixed bug #37002 (Have to quote literals in INI when concatenating with vars) 2006-04-12 09:52:06 +00:00
faa0b32fec ChangeLog update 2006-04-11 05:31:53 +00:00
Marcus Boerger
509c9d44e2 - Iterators from overloaded objects are allowed to not have keys... 2006-04-10 23:15:26 +00:00
Marcus Boerger
b967992116 - Allowing to pass in ce as NULL has its charme, too 2006-04-10 22:49:09 +00:00
Marcus Boerger
36b3b8ef63 - Fix coverity issue 49: ce might be forwarded as NULL without an exception
being thrown in case the Zend API is being used wrong (in custom exts for
  instance).
2006-04-10 22:37:55 +00:00
Dmitry Stogov
68dd370e96 Fixed possible crash in interactive mode 2006-04-10 12:27:17 +00:00
ca88b09b5e ChangeLog update 2006-04-08 05:31:55 +00:00
Dmitry Stogov
ee4fb4c41d - Fixed storing NULL pointers in HashTable
- Optimized zend_hash_reverse_apply()
2006-04-07 10:05:17 +00:00
14ba1088ad ChangeLog update 2006-04-07 05:31:53 +00:00
Andrei Zmievski
f37190dc57 MFB 2006-04-06 21:16:28 +00:00
Sara Golemon
5f5faedf18 Overload 'duplicate' arg as applied to:
add_((next_)?index|assoc)_(ascii|rt)_stringl?(_ex)?
and
(ZVAL|RETVAL|RETURN)_(ASCII|RT|U)_STRINGL?

#define ZSTR_DUPLICATE (1<<0)
#define ZSTR_AUTOFREE (1<<1)

Duplicate keeps traditional value of '1', additional bit '2' tells
unicode mode conversion to automatically free the original string
in order to avoid leaks due to conversion on a value otherwise being
"given" to the engine.

/* Uses s as-is for non-unicode, or frees s after converting to unicode */
{
  char *s = estrdup("Hello");
  ZVAL_RT_STRING(pzv, s, ZSTR_AUTOFREE);
}

/* Duplicates for non-unicode, or converts (but doesn't free original) */
{
  char *s = "Hello";
  ZVAL_RT_STRING(pzv, s, ZSTR_DUPLICATE);
}

/* Uses as-is for non-unicode, or converts (but doesn't free original) */
{
  char *s = "Hello";
  zval zv;
  ZVAL_RT_STRING(&zv, s, 0);

  /* use zv for some temporary purpose */

  /* It's now necessary to manually free this generated value */
  if (UG(unicode)) {
    zval_dtor(&zv);
  }
}
2006-04-06 18:02:39 +00:00
282807267d ChangeLog update 2006-04-06 05:31:50 +00:00
Antony Dovgal
3305bba32b MF51: fix #36944 (strncmp & strncasecmp do not return false on negative string length) 2006-04-05 11:36:28 +00:00
c3c95c61fb ChangeLog update 2006-04-01 06:31:49 +00:00
Sara Golemon
fd606a8d78 Add API hooks and unicode.filesystem_encoding for handling unicode
conversions of filename entries.

Normal path conversions will simply use this converter,
Certain other protocols (such as http) which specify a
required character set (utf8), may override the conversion
by defining a path_encode() and/or path_decode() wrapper ops method.
2006-03-31 22:51:37 +00:00
8eb12d6116 ChangeLog update 2006-03-31 06:31:50 +00:00
Antony Dovgal
eea22a0ffa MF51: fix compilation on AIX 2006-03-30 21:39:15 +00:00
Dmitry Stogov
01cb2b07ed Unicode support 2006-03-30 08:15:18 +00:00
66287d9fb6 ChangeLog update 2006-03-30 06:31:53 +00:00
Antony Dovgal
6a53a49c8b MF51: 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)
2006-03-29 15:08:52 +00:00
39392cce19 ChangeLog update 2006-03-29 06:31:49 +00:00
Antony Dovgal
e98f9777db initialize bucket #0 with nulls 2006-03-28 21:58:21 +00:00
Antony Dovgal
f34d655334 MF51: fix #36897 (debug_print_backtrace() doesn't return void but array(0) {}) 2006-03-28 19:43:37 +00:00
25a73301a5 ChangeLog update 2006-03-28 06:31:49 +00:00
Andrei Zmievski
a65a781b16 Note 2006-03-28 06:30:47 +00:00
Antony Dovgal
31123e33b3 MF51: fix #36878 (error messages are printed even though an exception has been thrown) 2006-03-27 22:07:50 +00:00
Andrei Zmievski
978c58ad78 Add UTODO. 2006-03-27 19:15:58 +00:00
Andrei Zmievski
443f9d0844 Mark with UTODO instead of FIXME. 2006-03-27 17:34:06 +00:00
Dmitry Stogov
0e114d4295 Fixed test 2006-03-27 13:42:04 +00:00
Dmitry Stogov
ba72ff3fcc Fixed bug during function/class declaration in unicode mode 2006-03-27 09:44:03 +00:00
Dmitry Stogov
d7491a3e7e Fixed meory leak in case of unknown pragma 2006-03-27 08:09:08 +00:00
Dmitry Stogov
3cffaf78a3 Better but incomplete fix for bug #36840 2006-03-27 07:35:05 +00:00
03b5fefd39 ChangeLog update 2006-03-27 06:31:51 +00:00
Dmitry Stogov
bdfa3b1d36 Fixed ZTS build 2006-03-27 06:02:42 +00:00
Andrei Zmievski
c2bca6239d Fix a case where we could have an encoding conversion exception thrown
while building exception trace args!
2006-03-27 03:47:50 +00:00
Andrei Zmievski
90d03ff1e2 Use (unsigned char) to make sure that only the control chars are
replaced with '?';
2006-03-27 03:41:39 +00:00
Andrei Zmievski
19e6c92ad0 Skip BOM for UTF-16/32 converters when setting subst char. 2006-03-27 03:17:49 +00:00
Andrei Zmievski
29552a6472 Some functions may want to accept only Unicode or binary strings,
without having auto-conversion from the other string type. Add 'U' and
'S' specifiers for this. Also, remove traces of 'native' strings.
2006-03-27 02:52:06 +00:00
Andrei Zmievski
1709428494 Implement to-Unicode conversion error behavior. Note the adjusted APIs. 2006-03-26 06:19:24 +00:00
Andrei Zmievski
930bde5897 * Remove unicode.from_error_mode and unicode.from_subst_char from INI
settings.
* Add unicode_set_error_mode() and unicode_set_subst_char() functions to
  manipulate these global settings.
2006-03-26 01:48:33 +00:00
6702a305a2 ChangeLog update 2006-03-25 06:31:49 +00:00
Andrei Zmievski
de2f7f1d66 Hey! Don't remove vim modeline completely! :) 2006-03-24 16:45:18 +00:00
Antony Dovgal
792a2f6e65 whitespaces -> tabs
no other changes done
2006-03-24 10:25:50 +00:00
Dmitry Stogov
4767e90a47 Fixed bug #36840 (Memory leak if cast operator throws an exception that is caught) 2006-03-24 10:11:49 +00:00
Andrei Zmievski
51977c926c Support warning/exceptions flag for conversion errors. 2006-03-24 07:38:07 +00:00
6237738145 ChangeLog update 2006-03-24 06:31:51 +00:00
Andrei Zmievski
1c09ef8e37 Update conversion error behavior and add some new modes.
# The various escape modes are what ICU calls them. We may want to come
# up with different names for UNICODE/ICU/JAVA ones..
2006-03-23 22:00:42 +00:00
Andrei Zmievski
a27b78c2d2 Add (binary) cast operator. 2006-03-23 21:54:00 +00:00
Andrei Zmievski
b5221e4dd9 Allow conversion between binary/Unicode strings (based on
runtime_encoding setting).
2006-03-23 21:52:49 +00:00
Marcus Boerger
123df34265 - Initialize callable_name if requested 2006-03-23 13:09:28 +00:00
Antony Dovgal
88605a22ff implement correct fix for segfault on 64bit platform 2006-03-23 09:44:30 +00:00
cab8eea2f8 ChangeLog update 2006-03-23 06:31:57 +00:00
Antony Dovgal
763483d18b don't segfault on 64bit platforms 2006-03-22 19:36:10 +00:00
a6bcfeccf7 ChangeLog update 2006-03-21 06:31:49 +00:00
Dmitry Stogov
d2fd87526f Removed unreachable code 2006-03-20 15:12:54 +00:00
49f7b6605c ChangeLog update 2006-03-18 06:31:51 +00:00
Dmitry Stogov
51f7ee02c8 FIX: For some reason SIGSEGV handler wasn't set, but was restoring. Now all SIGS
EGV related code is commented.
2006-03-17 08:47:54 +00:00
Dmitry Stogov
53e1f2adfb Optimization of module unloading (temporary modules can be only in the end) 2006-03-17 08:34:34 +00:00
8ec6d16867 ChangeLog update 2006-03-17 06:31:49 +00:00
Dmitry Stogov
ea9b9502e9 typo 2006-03-16 15:42:54 +00:00
Dmitry Stogov
3510eda470 ws 2006-03-16 15:38:29 +00:00
Dmitry Stogov
89a1a4cbc4 Return "new" by reference now throws an E_STRICT error 2006-03-16 15:35:26 +00:00
Dmitry Stogov
dcd1ccd725 Added E_STRICT to E_ALL 2006-03-16 12:12:31 +00:00
Dmitry Stogov
9d7ca01c8b Dropped allow_call_time_pass_reference, the error is maden E_STRICT. 2006-03-16 11:32:00 +00:00
Dmitry Stogov
7c0e534157 Dropped zend.ze1_compatibility_mode 2006-03-16 10:33:23 +00:00
Dmitry Stogov
22055cb8fd Dropped register_long_arrays, added E_CORE for all dropped setting 2006-03-16 09:44:42 +00:00
a6ed0cb3e0 ChangeLog update 2006-03-16 06:31:47 +00:00
Dmitry Stogov
18d6d9d633 Fixed zend_u_strtod() that returned uninitialized value in case of empty string 2006-03-15 13:12:32 +00:00
Dmitry Stogov
d3e5691b41 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:15:20 +00:00
Dmitry Stogov
d51599dfcd Eliminated run-time constant fetching for TRUE, FALSE and NULL 2006-03-15 09:04:48 +00:00
Dmitry Stogov
a623645b6f Fixed "zend_vm_gen.php --without-specializer" 2006-03-15 08:06:51 +00:00
d06e1f49b6 ChangeLog update 2006-03-15 06:31:57 +00:00
Dmitry Stogov
663ba73ca2 Fixed bug #36568 (memory_limit setting on win32 has no effect) 2006-03-14 14:19:19 +00:00
Dmitry Stogov
72acb65b24 zend_hash_apply() doesn't use ZEND_HASH_APPLY_... macros 2006-03-14 11:24:30 +00:00
Dmitry Stogov
b7933917f6 "jump" -> "goto" 2006-03-14 11:20:19 +00:00
79f91078ef ChangeLog update 2006-03-14 06:31:48 +00:00
Dmitry Stogov
78aed20223 Optimized cleanup loops on request shutdown 2006-03-13 11:13:55 +00:00
29bc693710 ChangeLog update 2006-03-13 06:31:48 +00:00
Ilia Alshanetsky
fe2842d21b MFB51: As per agreement during PDM, remove the E_STRICT deprecation notice
from "var".
2006-03-12 16:53:41 +00:00
e93bc50c22 ChangeLog update 2006-03-11 06:31:48 +00:00
Dmitry Stogov
bc9eaa011e Fixed compilation error (Rob) 2006-03-10 16:35:57 +00:00
Dmitry Stogov
f0b9848949 Added RETVAL_EMPTRY_TEXT() and RETURN_EMPTY_TEXT() macroses 2006-03-10 16:35:21 +00:00
Dmitry Stogov
f8576f84dc Implemented "jump label" operator (limited "goto") 2006-03-10 08:29:43 +00:00
689eea9c3c ChangeLog update 2006-03-08 06:31:47 +00:00
Dmitry Stogov
432cae3222 Reverted "break label" 2006-03-07 08:43:21 +00:00
Andrei Zmievski
9840a792ee *** empty log message *** 2006-03-07 08:33:46 +00:00
Derick Rethans
6709a6bfc9 - Make this compile again 2006-03-07 07:58:56 +00:00
7453c27089 ChangeLog update 2006-03-07 06:31:50 +00:00
Andrei Zmievski
25d1f03526 Mark some functions as Unicode-safe and adjust UTODO notices for others. 2006-03-07 04:30:15 +00:00
Sara Golemon
cc523d42cb Remove register_globals regression test for Pierre 2006-03-07 00:26:27 +00:00
Dmitry Stogov
bc091138a5 fixed compatibility with ext/hash 2006-03-06 09:58:27 +00:00
1af22d5ab8 ChangeLog update 2006-03-06 06:31:47 +00:00
Marcus Boerger
24618f2b3b - Fix comment, too 2006-03-05 18:32:21 +00:00
Marcus Boerger
b0f461e9d9 - Fix Bug #34019 by popular demand: Implementing interface with a
__construct method strange behaviour
2006-03-05 18:23:56 +00:00
Marcus Boerger
fd2b76d505 - Add missing function for completeness 2006-03-05 16:09:45 +00:00
ae47c701b8 ChangeLog update 2006-03-05 06:31:46 +00:00
Johannes Schlüter
5575afef48 - Separate ZEND_METHOD from ZEND_FUNCTION 2006-03-04 14:37:50 +00:00
164ee5c2f4 ChangeLog update 2006-03-04 06:31:46 +00:00
Andrei Zmievski
ba0b3868ee Clean up after Marcus. 2006-03-03 23:23:17 +00:00
Marcus Boerger
03be54de37 - Make unicode handling portable (noted by andrei)
# Actually we should provide much more such unicode strings that we often
# use like 'parent', 'self' and so on.
2006-03-03 23:20:29 +00:00
Marcus Boerger
5d77a462f6 - As expected (but told otherwise) unicode strings indeed need to be
terminated by two \0.
2006-03-03 22:37:47 +00:00
Marcus Boerger
a9ea7e81c6 - Fix issue with uncaught exceptions in unicode mode 2006-03-03 21:58:56 +00:00
Marcus Boerger
4690c282a0 - Add new tests 2006-03-03 18:07:24 +00:00
Dmitry Stogov
dec6f749d9 Regenerated 2006-03-03 16:47:55 +00:00
Dmitry Stogov
2a2050d4e3 Added support for "continue" and "break" operators with labels. Each loop or switch statement can be marked by label and then it is possible to write "break <label>" instead of "break <number>". 2006-03-03 13:09:13 +00:00
Dmitry Stogov
bfe01c2c17 Fixed incorrect backtrace type ("::" instead of "->") for __set()/__get() 2006-03-03 12:06:44 +00:00
Dmitry Stogov
62de2d7366 Remove "called at [(null):0]" from debug backtrace 2006-03-03 10:09:35 +00:00
Johannes Schlüter
1ed7db0e3b - Fix typo 2006-03-03 09:56:47 +00:00