Commit graph

419 commits

Author SHA1 Message Date
Hannes Magnusson
5919165375 Add E_USER_DEPRECATED (patch by Lars Strojny) 2008-07-21 09:36:21 +00:00
Marcus Boerger
6cdd85c5fa - Fix function copying (in TSRM mode) 2008-07-13 21:30:18 +00:00
Antony Dovgal
bdaa1fe47f make sure that converters are not equal to utf8 & ascii before destroying them, or we may end up with double free 2008-05-20 15:03:13 +00:00
Andrei Zmievski
0d018ee265 Crossing the Rubicon: remove the unicode.semantics switch and default
unicode mode to On.
2008-05-19 19:39:25 +00:00
Dmitry Stogov
1d0f893b49 Lazy EG(active_symbol_table) initialization 2008-04-29 08:15:49 +00:00
Dmitry Stogov
0699d994c6 Fixed bug #44226 (Throwing an exception causes crash in multithreaded SAPI) 2008-04-17 10:21:25 +00:00
Dmitry Stogov
b287ccf508 Optimized ZEND_RETURN opcode to not allocate and copy return value if it is not
used.
2008-04-11 09:43:49 +00:00
Scott MacVicar
e55a0de496 MFB 5.3: Rewrite scanner to be based on re2c instead of flex
There are still changes in regards to parsing of Unicode encoded scripts to come.
2008-03-26 14:23:02 +00:00
Rasmus Lerdorf
b911467d1d MFB
Here are the signal changes from the 5.3 branch that optimizes signal
handler registration and switches from longjmp to siglongjmp in order
to make signal mask handling consistent across different UNIX operating
systems.
2008-03-19 16:37:49 +00:00
Dmitry Stogov
ea9305c543 Implemented concept of "delayed early binding" that allows opcode caches to perform class declaration (early and/or run-time binding) in exactly the same order as vanila php.
The following pseudo-code explains how it should be used in opcode cache.

function cache_compile_file($filename) {
        if (!is_cached($filename)) {
                ...
                orig_compiler_options = CG(compiler_optins);
                CG(compiler_options) |= ZEND_COMPILE_IGNORE_INTERNAL_CLASSES |
                                        ZEND_COMPILE_DELAYED_BINDING;
                $op_array = orig_compile_file($filename);
                CG(compiler_options) = orig_copiler_options;
                ...
        } else {
                $op_array = restore_from_cache($filename);
        }
        zend_do_delayed_early_binding($op_array);
}
2008-03-18 08:36:49 +00:00
Felipe Pena
3a3ebace1c MFB: User error handlers no longer catch supressed errors (patch by Etienne Kneuss) 2008-03-08 22:03:21 +00:00
Dmitry Stogov
c8b1dbff23 Optimized require_once() and include_once() by eliminationg open() syscall on se
cond usage.
2008-03-05 13:35:02 +00:00
Marcus Boerger
6b58678c63 - Add E_DEPRECATED (Lars Strojny, Felipe Pena, Marcus) 2008-02-23 17:03:53 +00:00
Derick Rethans
a99fd6a8af - Send the debug info to stderr instead of stdout. 2008-01-28 20:33:50 +00:00
Derick Rethans
9613ab7a0a - Show GC statistics if GC benchmarking is enabled.
#- Discussed this with Dmitry.
2008-01-24 10:41:52 +00:00
Dmitry Stogov
6847c18150 Added garbage collector 2008-01-22 09:29:29 +00:00
Sebastian Bergmann
9b620d50b4 Bump copyright year, 2 of 2. 2007-12-31 07:12:20 +00:00
Jani Taskinen
52ad681539 - WS + CS + use Z macros where possible 2007-11-02 15:59:58 +00:00
Yiduo (David) Wang
95da0dc570 Added macros for managing zval refcounts and is_ref statuses 2007-10-07 05:15:07 +00:00
Dmitry Stogov
611abb17fc Namespace constants 2007-08-24 13:50:52 +00:00
Jani Taskinen
5d0176a32b - Fix compile warnings 2007-07-21 00:34:41 +00:00
Antony Dovgal
4adec955f9 fix folding and ws 2007-07-10 15:06:58 +00:00
Antony Dovgal
0e240e2df1 this case is handled in convert_to_unicode(), no need to duplicate it 2007-04-28 12:05:19 +00:00
Antony Dovgal
5ff229034f fix build on Tru64 2007-04-26 19:08:24 +00:00
Antony Dovgal
99def5cac2 reset the exception if it's still NULL 2007-03-15 16:42:51 +00:00
Marcus Boerger
20a40063c5 - avoid sprintf 2007-02-24 16:25:58 +00:00
Marcus Boerger
06af520df7 - Add Z_OBJDEBUG[_P[P]] helper macros 2007-01-19 22:19:08 +00:00
Marcus Boerger
13da6bf4d7 - Add debug_info helper to overloadedobjects 2007-01-18 23:23:13 +00:00
Dmitry Stogov
e5ea244b36 Fixed bug #39969 (ini setting short_open_tag has no effect when using --enable-maintainer-zts) 2007-01-12 14:38:07 +00:00
Dmitry Stogov
c849a54b02 Fixed bug #35634 (Erroneous "Class declarations may not be nested" error raised). (Carl P. Corliss) 2007-01-11 16:47:46 +00:00
Sebastian Bergmann
3717df72ae Bump year. 2007-01-01 09:29:37 +00:00
Antony Dovgal
52d9ed7b34 nuke dead code 2006-12-28 21:01:52 +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
Andrei Zmievski
5a15a3c3f4 Clarify stream_encoding. 2006-12-11 21:48:07 +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
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
Dmitry Stogov
57d22421db Unicode support.
Now the real UG(unicode) value is available during MINIT calls.
2006-11-17 10:48:53 +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
Marcus Boerger
f7600a7b67 - Fix issue with name mangling 2006-10-31 19:21:03 +00:00
Antony Dovgal
15e479e892 fix invalid write 2006-10-19 10:02:34 +00:00
Dmitry Stogov
de613c8a1b Fixed incorrect parameter name coping 2006-10-17 10:43:37 +00:00
Dmitry Stogov
0d7d1b7ffa Fixed bug #39140 (Uncaught exception may cause crash) 2006-10-16 11:13:20 +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
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
Sara Golemon
d666c05427 PHP6 Update for get_included_files() and export of path decode for Zend 2006-10-03 16:28:02 +00:00
Andrei Zmievski
966d8022b9 Fix off-by-one error. 2006-09-29 20:59:26 +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
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