1
0
mirror of https://github.com/php/php-src.git synced 2026-04-23 16:08:35 +02:00
Commit Graph

189 Commits

Author SHA1 Message Date
Scott MacVicar 56352d1a2f MFB 5.3: Rest of the changes for re2c merge 2008-03-26 14:46:17 +00:00
Marcus Boerger bd366b66da - Use sizeof rather than strlen and cleanup 2008-03-25 21:58:03 +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
Marcus Boerger 8942024d3d - MFB Sync 2008-02-03 17:50:06 +00:00
Dmitry Stogov 3c02d2402d Fixed bug #43968 (Extending internal class causes a crash)
The fix is a workaround for GCC optizer bug.
2008-01-29 20:01:43 +00:00
Sebastian Bergmann 9b620d50b4 Bump copyright year, 2 of 2. 2007-12-31 07:12:20 +00:00
Jani Taskinen 44cbb46246 - Added common getopt implementation to core.
- Added long-option feature to getopt().
- Made getopt() available on win32 systems.
Patch by: David Soria Parra <dsp@php.net>
[DOC]: These changes will be available from 5.3+
2007-10-01 12:32:39 +00:00
Dmitry Stogov 8146078f7b Improved memory usage by movig constants to read only memory. (Dmitry, Pierre) 2007-09-27 18:28:44 +00:00
Stanislav Malyshev c56929d6f1 remove unneeded variables 2007-08-08 23:56:19 +00:00
Johannes Schlüter 895a9fb212 - Fix build without reflection
# reflection_what is used fby --ri, too
2007-05-06 12:57:27 +00:00
Marcus Boerger 74e6d53ce4 - Fix function signature 2007-05-05 12:46:30 +00:00
Marcus Boerger 87041a3986 - Simplify/use consts 2007-05-05 12:09:21 +00:00
Marcus Boerger c40640626b - WS/CS 2007-05-04 22:09:30 +00:00
Hannes Magnusson 02af1b4a65 rename --ri core to --ri main
# "the man has spoken"
2007-04-25 09:53:20 +00:00
Hannes Magnusson 64179171f8 Add the ability to display the core ini entries via "php --ri core" 2007-04-23 21:24:54 +00:00
Marcus Boerger 118fe71b72 - Rephrase as suggested by Chris Jones 2007-04-23 20:47:58 +00:00
Marcus Boerger 8e500e7749 - Add 'php --ini' to CLI which returns the INI file/dir configuration 2007-04-23 20:17:19 +00:00
foobar c225e4a7d8 MFB 2007-04-17 19:48:16 +00:00
Antony Dovgal 30239ea383 check for NULL, then add flag 2007-02-22 10:06:02 +00:00
Antony Dovgal 30dacafa72 implement PHP_STREAM_FLAG_NO_CLOSE and avoid hacks in plain wrapper 2007-02-21 21:56:45 +00:00
Antony Dovgal 2ad6c07ca1 don't call php_module_startup() directly, use startup functions
patch by Andrei Nigmatulin
2007-02-20 19:19:14 +00:00
Marcus Boerger 94292d3e01 - Add --ri/--rextinfo 2007-01-23 20:02:29 +00:00
Sebastian Bergmann 3717df72ae Bump year. 2007-01-01 09:29:37 +00:00
Antony Dovgal 03b68981f9 prevent potential leak on error 2006-12-21 00:43:00 +00:00
Antony Dovgal 92ed3d2b4c call sapi_deactivate() & friends on error
fixes leak with `php-cli -n -c ..`
2006-11-24 11:54:48 +00:00
Ilia Alshanetsky 12b0b6368a MFB: Restore support for unquoted -d options 2006-09-22 17:42:08 +00:00
Antony Dovgal 2486c2df50 fix leaks with php -d option=value -c /path -h 2006-09-15 08:18:10 +00:00
Dmitry Stogov fcb9e3bc28 Fixed bug #38543 (shutdown_executor() may segfault when memory_limit is too low). 2006-08-22 12:05:10 +00:00
Antony Dovgal 5c06523d75 fix #37920 (compilation problems on z/OS) 2006-06-27 08:26:54 +00:00
Hannes Magnusson 9f96f0340b Argument info 2006-06-25 19:17:20 +00:00
Antony Dovgal 737e1bdd92 initialize pointers 2006-06-20 13:01:08 +00:00
Michael Wallner dbfa7271c8 MFB52: Fix Bug #37780 memory leak trying to execute a non existing file (CLI) 2006-06-19 14:53:03 +00:00
Johannes Schlüter 9c5fdd1b7f - Removed useless -g command line option from CGI and CLI
- Fixed conflicting behaviour if -B and -a are set with CLI
- Fixed handling of auto_prepend and exceptions in readline-a-mode
2006-06-03 22:00:30 +00:00
Michael Wallner 231ad17475 - explicit usage of TS macros
# this could have been raised a lot earlier
2006-06-03 11:19:44 +00:00
Michael Wallner 4ce0141713 - new output control code
# scan README.NEW-OUTPUT-API to get a grasp
# tree has been tagged with BEFORE_NEW_OUTPUT_API
#
# TODO:
#  - improve existing output handlers
#  - move zlib.output_compression cruft from SAPI.c to zlib.c
#  - output_encoding handling was ambigious, resp. is undefined yet
#  - more tests
2006-06-02 19:51:43 +00:00
Dmitry Stogov b75a22b203 Fixed bug #37306 (max_execution_time = max_input_time). 2006-05-11 22:08:55 +00:00
Frank M. Kromann 954199c9fb More ZSTR() fixes 2006-04-29 14:53:26 +00:00
Frank M. Kromann 1791befa0c Fix Win32 build. NULL_ZSTR was converted to ZSTR(NULL_ZSTR) 2006-04-22 10:39:31 +00:00
Andrei Zmievski a75b8f5f35 Fix compiler errors by using NULL_ZSTR where zstr is expected.
# I guess we need to use NULL_ZSTR instead of NULL when passing NULL to
# functions that expect zstr parameter.
2006-03-17 22:52:55 +00:00
Dmitry Stogov 34c493ea07 Unicode support for dl() patch. 2006-03-17 13:45:43 +00:00
Dmitry Stogov 86780519d4 Disabled dl(). Now it is enabled only when a SAPI layer registers it explicitly. Only CLI, CGI and EMBED do this. 2006-03-16 16:53:10 +00:00
Johannes Schlüter 14e07c9ae2 - List --rf/--rc/--re only with enabled reflection 2006-02-21 21:14:36 +00:00
Dmitry Stogov 0f1209ab3d Portable unicode string API:
- use the same type (int) for zval.value.usr.len and zval.value.str.len
  - use union "zstr" as char*/UChar* mixture instead of void*
  - Z_UNISTR() and Z_UNILEN() no longer check for Z_TYPE()
  - nuke int32_t from ZE (not finisned)
2006-02-21 20:12:43 +00:00
Dmitry Stogov 09ca61c125 Made server wide switch for unicode on/off (according to PDM). 2006-02-13 10:23:59 +00:00
Marcus Boerger 34c8cd0190 - Show whether this is the shell or just the starnge mode 2006-01-07 16:46:30 +00:00
foobar 251c5173fd bump year and license version 2006-01-01 13:10:10 +00:00
Marcus Boerger 6f2a00690b - Add method support to --rfunction 2005-12-11 02:40:49 +00:00
Marcus Boerger 4258bc6f26 - Add docu 2005-12-11 02:16:24 +00:00
Marcus Boerger 9662ba59c4 - Rewrite --r* and add --rfunction 2005-12-10 13:43:51 +00:00