Commit Graph

5610 Commits

Author SHA1 Message Date
Marcus Boerger
d3e5026564 - MFH Add E_DEPRECATED (Lars Strojny, Felipe Pena, Marcus)
[DOC] Finally added deprecation messages
2008-02-23 17:06:22 +00:00
Dmitry Stogov
18cc21c662 Fixed bug #43483 (get_class_methods() does not list all visible methods) 2008-02-21 15:14:27 +00:00
Dmitry Stogov
3e7e9d4af6 Fixed bug #44141 (private parent constructor callable through static function) 2008-02-21 13:55:45 +00:00
Dmitry Stogov
bb1ee6d14a Prevented recursive collector invocation 2008-02-21 10:42:14 +00:00
Dmitry Stogov
8c32f99c25 Fixed bug #44184 (Double free of loop-variable on exception) 2008-02-20 12:05:57 +00:00
Dmitry Stogov
edf53e2073 Added checks for destoied objects 2008-02-20 09:45:47 +00:00
Dmitry Stogov
caee59b856 everted (this part was committed by mistake) 2008-02-19 17:05:41 +00:00
Dmitry Stogov
cb714158af Fixed memory leaks 2008-02-19 16:39:18 +00:00
Dmitry Stogov
7dd164dcec Fixed GC bug 2008-02-19 15:55:57 +00:00
Dmitry Stogov
a4b872a6d8 iFixed memory leak 2008-02-19 12:00:53 +00:00
Sebastian Bergmann
1b03ecf1c7 MFH: Fugbix typo. 2008-02-19 06:52:43 +00:00
Dmitry Stogov
4cf7073a84 Removed redundant refcount manipulations 2008-02-18 12:11:47 +00:00
Dmitry Stogov
e563a6d979 Fixed bug #44069 (Huge memory usage with concatenation using . instead of .=) 2008-02-14 14:42:00 +00:00
Dmitry Stogov
fb50ef1aab Reverted memrchr() patch, because it is broken on linux 64-bit 2008-02-14 10:25:22 +00:00
Dmitry Stogov
9fdaddc56d Use memrchr() instead of zend_memrchr() if available. (Nuno) 2008-02-13 16:22:01 +00:00
Dmitry Stogov
ddcf7a2f49 Added NEWDOC 2008-02-12 09:27:45 +00:00
Dmitry Stogov
51278b6d22 Fixed ext/tokenizer test failures because of token renumbering 2008-02-12 08:49:08 +00:00
Stanislav Malyshev
bbc813d360 fix folding 2008-02-12 01:17:48 +00:00
Stanislav Malyshev
27d4a3f6c3 add tests for __DIR__ 2008-02-12 00:26:51 +00:00
Stanislav Malyshev
fd597dce1b [DOC] Add compile-time __DIR__ constant which implements dirname(__FILE__) 2008-02-12 00:21:15 +00:00
Hannes Magnusson
86c9b5e46c Fix segfaults when calling "ctors statically" 2008-02-11 15:46:10 +00:00
Marcus Boerger
da2a1799ca - MFH Windows build fix 2008-02-09 21:22:31 +00:00
Marcus Boerger
c7f71a7dd0 - MFH Simplify 2008-02-07 18:42:01 +00:00
Marcus Boerger
b7b41a6612 - MFH Fix missing check and tests 2008-02-06 20:40:19 +00:00
Marcus Boerger
0976a2646a - MFH Fix cross class tree reference issues with callbacks (colder,helly) 2008-02-05 19:08:24 +00:00
Hannes Magnusson
ed1bafe5d7 Fix test 2008-02-05 08:41:04 +00:00
Jani Taskinen
8a70a554d6 MFH: - Fixed bugs #43915, #43923 and #44019, a tiny performance issue fixed too 2008-02-04 20:45:20 +00:00
Marcus Boerger
1ecdaa3885 - Fix warnings 2008-02-03 14:32:48 +00:00
Antony Dovgal
4904889568 MFH: fix leak appearing when calling non-static protected or private methods as static 2008-02-02 22:29:41 +00:00
Marcus Boerger
da5b979f88 - MFH Add comment that explains why we need E_ERROR in those cases 2008-02-02 15:48:04 +00:00
Marcus Boerger
ac8e76c714 - Fix remaining issue (should be last one) 2008-02-02 15:18:30 +00:00
Marcus Boerger
7769fda15c - Drop useless TODO, this would need to be fixed in a generic way 2008-02-02 14:19:03 +00:00
Marcus Boerger
95a3cccf5f - Fix flag handling in message generation 2008-02-02 13:56:59 +00:00
Rasmus Lerdorf
539eaceddc What's the [0] for here? Looks wrong and causes stuff to segv 2008-02-02 01:12:01 +00:00
Rasmus Lerdorf
f48bd05482 Fix more tests (some of these were not broken by the recent changes) 2008-02-02 00:55:35 +00:00
Rasmus Lerdorf
45db15ad4e Small tweak. Need to make array and string callback syntax behave the
same way.  Also change "cannot" to "should not" since we obviously
"can" make the call.
2008-02-01 23:09:10 +00:00
Marcus Boerger
e8a8acdf39 [DOC]
- Fix callable/static mess, the following will now all result in a E_STRICT
  . binding a dynamic function as a static callback
  . static call of a dynamic function
  . is_callable() on a static binding to a dynamic function
# [marcus@frodo PHP_5_3]$ php -a -d error_reporting=8191
# make: `sapi/cli/php' is up to date.
# Interactive shell
#
# php > class t{ function f() { echo "Funny\n"; } }
# php > $c = array("t","f");
# php > call_user_func($c);
#
# Strict Standards: call_user_func() expects parameter 1 to be a valid callback, non-static method t::f() cannot be called statically in php shell code on line 1
# Funny
# php > var_dump(is_callable($c));
#
# Strict Standards: Non-static method t::f() cannot be called statically in php shell code on line 1
# bool(true)
# php > t::f();
#
# Strict Standards: Non-static method t::f() should not be called statically in php shell code on line 1
# Funny
# php >
2008-02-01 21:27:55 +00:00
Dmitry Stogov
240fa244c3 Improved PHP binary size and startup speed with GCC4 visibility control (Nuno) 2008-01-30 09:41:12 +00:00
Dmitry Stogov
9770b3cb00 Fixed bug #43323 (Wrong count abstract methods). (Felipe, Dmitry) 2008-01-29 11:12:57 +00:00
Dmitry Stogov
e0ca3b2424 Fixed types 2008-01-29 11:12:07 +00:00
Dmitry Stogov
58433c9b11 Fixed bug #43918 (Segmentation fault in garbage collector) 2008-01-29 09:59:42 +00:00
Antony Dovgal
4252942abd MFH: fix typo and bug #43646 2008-01-29 00:07:26 +00:00
Stanislav Malyshev
2cd551ffec fix type 2008-01-28 23:55:53 +00:00
Derick Rethans
13d75ce6e6 - MFH: Send the debug info to stderr instead of stdout. 2008-01-28 20:34:02 +00:00
Dmitry Stogov
d90ebc65a6 Fixed comilation warnings 2008-01-24 18:07:45 +00:00
Dmitry Stogov
2fd21da895 Increased Zend MM cache size 2008-01-24 12:21:32 +00:00
Dmitry Stogov
5a00207c6d Fixed possible GC failure because of EG(object_store).object_buckets reallocation 2008-01-24 11:48:54 +00:00
Dmitry Stogov
03c018d34e Fixed GC bug 2008-01-24 10:49:26 +00:00
Derick Rethans
3bd291e118 - MFH: Show GC statistics if GC benchmarking is enabled.
#- Discussed this with Dmitry.
2008-01-24 10:42:12 +00:00
Dmitry Stogov
f8297f6e37 Fixed bug #43426 (crash on nested call_user_func() calls) 2008-01-24 09:47:00 +00:00
Dmitry Stogov
0b6825102d Changed EG(argument_stack) implementation. 2008-01-24 09:41:39 +00:00
Dmitry Stogov
07000cc2ba Fixed error message 2008-01-24 08:51:38 +00:00
Stanislav Malyshev
529c17665f fix build 2008-01-23 19:55:37 +00:00
Dmitry Stogov
0095544c4d Additional executor specialization 2008-01-23 17:55:55 +00:00
Dmitry Stogov
71592cec06 Added garbage collector 2008-01-22 09:27:48 +00:00
Dmitry Stogov
fa47e900e2 Changed exception handling. Now each op_array doesn't contain ZEND_HANDLE_EXCEPTION opcode in the end 2008-01-21 19:39:55 +00:00
Dmitry Stogov
7390459e26 Yet another comparison optimisation for usual cases 2008-01-21 19:10:25 +00:00
Dmitry Stogov
48379d53e6 Eliminate unnecessary checks for INC/DEC IS_CV 2008-01-21 14:22:59 +00:00
Dmitry Stogov
e6588b6620 Fixed bug #43851 (Memory corrution on reuse of assigned value) 2008-01-15 11:52:45 +00:00
Marcus Boerger
ba8acfdfdf - Fix the fix 2008-01-15 11:47:05 +00:00
Antony Dovgal
06229e417f oops..
I didn't mean to commit this
2008-01-15 09:48:55 +00:00
Antony Dovgal
b101ee1a07 MFH: rename macros
patch by colder
2008-01-15 09:36:05 +00:00
Marcus Boerger
22221def71 - Fix memleak (found by colder) 2008-01-14 18:13:12 +00:00
Dmitry Stogov
059bc1d593 Simplified assignment to string offset 2008-01-11 15:10:24 +00:00
Dmitry Stogov
6be997dca9 Fixed unspecialized executor 2008-01-11 10:08:49 +00:00
Dmitry Stogov
ab5bddd976 Fixed bug #39346 (Unsetting a static variable inside a destructor causes segfault later on) 2008-01-11 08:42:06 +00:00
Dmitry Stogov
ed8e2fa031 Added missing warning message 2008-01-10 09:38:23 +00:00
Dmitry Stogov
b5c4244069 Fixed bug #43703 (Signature compatibility check broken) 2008-01-09 07:57:42 +00:00
Sebastian Bergmann
a5cf49b2d3 Leftover: Bump copyright year. 2007-12-31 07:24:44 +00:00
Sebastian Bergmann
d1dded8751 MFH: Bump copyright year, 2 of 2. 2007-12-31 07:17:19 +00:00
Dmitry Stogov
72de143266 Fixed possible memory corruption 2007-12-28 15:32:09 +00:00
Dmitry Stogov
5a3eb53723 Fixed bug #38469 (unexpected creation of cycle, json tests failed, leaks memory) 2007-12-28 13:22:00 +00:00
Dmitry Stogov
2fa0078a71 Initialize operand type 2007-12-28 09:46:52 +00:00
Dmitry Stogov
ba8dcae76d Use proper result type 2007-12-27 13:52:05 +00:00
Dmitry Stogov
43f6392e90 Fixed bug #43651 (is_callable() with one or more nonconsecutive colons crashes) 2007-12-25 10:58:30 +00:00
Dmitry Stogov
ed5a424b4f Additional fix for bug #42868 2007-12-24 18:09:50 +00:00
Johannes Schlüter
1b6100f4c1 - MFH: Fix #43450 (Memory leak on some functions with implicit object
__toString() call) (Davic C.)
2007-12-21 20:56:33 +00:00
Ilia Alshanetsky
11a93f62ac Fixed bug #43644 (is_callable(':') crashes) 2007-12-21 01:21:52 +00:00
Dmitry Stogov
1e5e110844 x86_64 assembler optimization (Brain Shire) 2007-12-20 12:58:46 +00:00
Robert Nicholson
d0bfef7f94 New test - Indexing - various special cases 2007-12-20 11:42:00 +00:00
Dmitry Stogov
f7f6de4dc2 Fixed test 2007-12-17 10:05:13 +00:00
Dmitry Stogov
2b981769a3 Fixed bug #42868 (Floats cast to integer produce unpredicatable results). (Zoe Slattery) 2007-12-17 10:02:13 +00:00
Dmitry Stogov
f817a1ce6a executor optimization 2007-12-14 14:14:50 +00:00
Antony Dovgal
2569b593f1 MFH: add new tests written by Felipe Pena 2007-12-13 13:51:15 +00:00
Dmitry Stogov
64e8f22355 Allowed import of global classes "use ::GlobalClassName;" 2007-12-13 10:02:03 +00:00
Dmitry Stogov
80e77c1366 Allowed multiple namespaces per file (Gregory) 2007-12-13 08:57:52 +00:00
Dmitry Stogov
6484b3c458 Fixed bug #43344 (Wrong error message for undefined namespace constant) 2007-12-07 17:11:24 +00:00
Dmitry Stogov
d161978c56 Fixed uninitialized value 2007-12-04 12:38:42 +00:00
Dmitry Stogov
0f59a01e4a Fixed bug #43332 (self and parent as type hint in namespace) 2007-12-03 14:15:43 +00:00
Dmitry Stogov
70bf5468de Fixed compilation on Windows 2007-11-23 15:03:03 +00:00
Dmitry Stogov
4ab8d46ddd Fixed definitions 2007-11-23 13:38:32 +00:00
Marcus Boerger
0846676471 # My editor somehow likes to convert to UTF-8 2007-11-23 13:27:41 +00:00
Marcus Boerger
c0802ee667 - Add another LSB test 2007-11-23 13:25:21 +00:00
Dmitry Stogov
4e0a8a0914 Fixed test 2007-11-22 13:33:36 +00:00
Dmitry Stogov
648fbe9d58 Fixed bug #43128 (Very long class name causes segfault) 2007-11-22 13:27:13 +00:00
Dmitry Stogov
1836daf7f9 Fixed bug #43318
The "const" statement is still allowed outside of namespaces but arrays are disabled.
2007-11-22 10:46:26 +00:00
Dmitry Stogov
ea0a1c09e9 Speed-up of ZEND_DO_FCALL and ZEND_INIT_FCALL_BY_NAME by lowercasing and calculating hash values at compile time. 2007-11-22 09:02:55 +00:00
Dmitry Stogov
caa15f0291 Macro definitions are moved to zend.h 2007-11-21 14:55:41 +00:00
Dmitry Stogov
e0ae3d22c1 Safe exit from executor() 2007-11-21 12:28:13 +00:00
Johannes Schlüter
45f6b4ce2f - MFH Improved version of ternary shortcut (Marcus) 2007-11-21 09:41:35 +00:00
Johannes Schlüter
4a8ed7ab68 - MFH ?: operator (Marcus)
[DOC] "expr1 ?: expr1" is a shortcut for: "expr1 ? expr1 : expr2" as
        exists in gcc and discussed some time back. Note that this is not
        an implementation ifsetor($var, default). While ifsetor would not
        generate any message for non existing variables or array indices
        the ternary shortcut does. Also the ternary shortcut does a boolean
        evaluation rather then checking for isset(). That way ther ternary
        shortcut can work on any expression while ifsetor can only work on
        variables. Also to be silent one has do do: "@$expr1 ?: $expr2".
2007-11-21 00:03:16 +00:00
Jani Taskinen
5e123ebef9 MFH: add ZEND_DEBUG_BUILD constant 2007-11-20 16:34:25 +00:00
Dmitry Stogov
a29a9d5a42 Optimization of zend_do_fcall_common_helper() 2007-11-20 13:53:08 +00:00
Dmitry Stogov
6a5a172795 MFH: math and comparison optimization + use macroses 2007-11-20 13:26:36 +00:00
Dmitry Stogov
de46d94589 ZEND_FETCH_DIM optimization 2007-11-20 11:01:28 +00:00
Dmitry Stogov
10f6cd5cb0 Fixed compilation on some systems (Wez) 2007-11-20 10:19:11 +00:00
Dmitry Stogov
c3ab6bd091 Fixed bug #43136 (possible crash on script execution timeout. The EG(function_state_ptr) is completely removed, EG(current_execute_data)->function_state must be used instead) 2007-11-20 09:51:12 +00:00
Dmitry Stogov
9f230a0d79 Added support for "namespace::" prefix that is resolved to current namespace name. 2007-11-20 08:53:02 +00:00
Dmitry Stogov
969dda1b51 Fixed tests 2007-11-19 08:19:31 +00:00
Derick Rethans
991f1d8d7a - MFH: Initialize the reserved resource bits so that they can be reliably used. 2007-11-18 21:29:55 +00:00
Sara Golemon
ee548c7bf3 MFH(r-1.192) Remove extraneous space in error/notice messages (felipe) 2007-11-17 21:52:02 +00:00
Antony Dovgal
714aad97e7 MFH: disallow multiple access modifiers and 'abstract abstract' methods (patch by Etienne Kneuss)
add tests
2007-11-13 16:52:14 +00:00
Dmitry Stogov
6d64218bc5 better error messages 2007-11-12 17:52:15 +00:00
Antony Dovgal
52e773740c MFH: fix error message (reported by Felipe Nascimento) 2007-11-12 16:55:44 +00:00
Dmitry Stogov
a90a0305b0 Fixed bug #43183 ("use" of the same class in difference scripts results in a fatal error) 2007-11-12 15:52:22 +00:00
Dmitry Stogov
dd3c04cea1 Fixed bug #42937 (__call() method not invoked when methods are called on parent from child class). 2007-11-12 09:12:06 +00:00
Johannes Schlüter
18a656de6f - MFH: static can't be used as type hint, fixes #43126 (Etienne Kneuss) 2007-11-11 22:11:25 +00:00
Dmitry Stogov
4d681d5660 new test 2007-11-09 13:34:58 +00:00
Dmitry Stogov
8646d9afce Fixed type-hint compatibility check in namespaces 2007-11-09 13:34:39 +00:00
Dmitry Stogov
98b3c247a8 Fixed implementation of internal interfaces in namesapces 2007-11-09 12:15:41 +00:00
Johannes Schlüter
e6dff0caa4 - MFH: Allow persistent zent_ptr_stacks (patch by Andrey Hristov) 2007-11-09 10:34:27 +00:00
Dmitry Stogov
b7d87bebc9 T_IMPORT -> T_USE 2007-11-07 09:13:50 +00:00
Dmitry Stogov
52f25f6132 Fixed bug #43175 (__destruct() throwing an exception with __call() causes segfault) 2007-11-06 14:56:14 +00:00
Dmitry Stogov
22db451fdd Fixed bug #43201 (Crash on using unitialized vals and __get/__set) 2007-11-06 14:11:59 +00:00
Dmitry Stogov
c3c5d27fbc Fixed windows build (Rob) 2007-11-06 12:06:05 +00:00
Dmitry Stogov
609aa052b3 Allow user defined malloc/realloc/free 2007-11-06 07:22:13 +00:00
Jani Taskinen
129c125f7f - Fix confusing logic (sync with HEAD) 2007-11-05 11:43:31 +00:00
Jani Taskinen
a541bb8078 - Fix tests
- Update README.PARAMETER_PARSING_API
2007-11-02 19:41:12 +00:00
Jani Taskinen
b489251177 - MFH from HEAD:
. Folding tags
  . Parameter parsing
  . SPL debug info
  . array function improvements (not all yet)
  . Improvements to function calling with call_user_* functions
  . Improvements to debugging info in var_dump/print_r
# I propably forgot already something but this all was pretty close tied
# to each other so it wasn't possible to do it in parts.
2007-11-02 19:40:39 +00:00
Antony Dovgal
0d74798914 fix bug37251.phpt failure (two error messages instead of one)
should I merge this to 5_2?
2007-11-02 18:05:55 +00:00
Jani Taskinen
77bc1f8b76 - Missing test. (NOTE: Fails due to unexpected double output for me, OKOK) 2007-11-02 17:47:39 +00:00
Dmitry Stogov
f10766f1fb Reimplemented support for namespaces in indexes id constant arrays (removed zval.idx_type) 2007-11-02 10:11:42 +00:00
Dmitry Stogov
acd9a96010 Fixed bug #43027 (Declare cause fatal error) 2007-11-01 11:58:58 +00:00
Antony Dovgal
7cef86c246 backport zero args checks from HEAD
(fixes error message when passing parameters to a function accepting none)
2007-10-30 10:17:41 +00:00
Sara Golemon
b38282c3fd Backport +/* vararg specifiers from PHP6 2007-10-29 17:09:57 +00:00
Dmitry Stogov
19bf724c48 optimization 2007-10-29 14:36:55 +00:00
Dmitry Stogov
46dc96f3e0 Added ability to control memory consumption between request using ZEND_MM_COMPACT environment variable 2007-10-25 07:32:40 +00:00
Dmitry Stogov
1530fe99c8 Fixed variations of bug #35163 2007-10-23 12:52:40 +00:00
Dmitry Stogov
b599e434ad Fixed bug #35163 (Array elements can lose references) 2007-10-23 09:55:11 +00:00
Stanislav Malyshev
988d28cc13 ws 2007-10-18 20:44:41 +00:00
Dmitry Stogov
1087e6b1e6 Fixed bug #42859 (import always conflicts with internal classes). (cellog@php.net, Dmitry) 2007-10-17 10:01:22 +00:00
Hannes Magnusson
7c5c2147c6 MFH: Add skipif 2007-10-13 11:37:42 +00:00
Marcus Boerger
8ce1211a62 - MFH debug object helper 2007-10-11 01:03:19 +00:00
Yiduo (David) Wang
4b4d634cb9 MFH: Added macros for managing zval refcounts and is_ref statuses 2007-10-07 05:22:07 +00:00
Ilia Alshanetsky
0604cb8d48 Generated files that are part of the previous patch 2007-10-04 23:22:37 +00:00
Ilia Alshanetsky
4c619a3f5f Fixed bug #42817 (clone() on a non-object does not result in a fatal error) 2007-10-04 23:19:20 +00:00
Jani Taskinen
108dddcac0 MFH:- Removed the %destructor declaration (requires bison 1.875 or above) 2007-10-03 13:03:18 +00:00
Dmitry Stogov
eb0c56ada1 Fixed bug #42820 (defined() on constant with namespace prefixes tries to load class). 2007-10-03 10:33:02 +00:00
Dmitry Stogov
68055015eb Fixed bug #42818 ($foo = clone(array()); leaks memory) 2007-10-03 09:47:45 +00:00
Dmitry Stogov
1491992f76 Fixed bug #42772 (Storing $this in a static var fails while handling a cast to string) 2007-10-03 08:02:36 +00:00
Dmitry Stogov
69edb0131a ws 2007-10-03 06:49:15 +00:00
Dmitry Stogov
9aee9e0417 Fixed access to freed memory in tests/classes/__call_001.phpt 2007-10-02 08:47:22 +00:00
Dmitry Stogov
220641af70 Fixed bug #42819 (namespaces in indexes of constant arrays) 2007-10-02 08:26:50 +00:00
Ilia Alshanetsky
bb8b632dc1 Fixed typo in the previous patch 2007-10-01 14:59:55 +00:00
Ilia Alshanetsky
086289983e Refactor code to make fixes for coverity issues #385 and #386 a bit more
obvious
2007-10-01 14:51:11 +00:00
Jani Taskinen
2bc631fb40 MFH:- Added common getopt implementation to core.
MFH:- Added long-option feature to getopt().
MFH:- Made getopt() available on win32 systems.
MFH:  Patch by: David Soria Parra <dsp@php.net>
[DOC]: These changes will be available from 5.3+

# Note: Fixed also tests and synced basic_functions.c with HEAD.
2007-10-01 12:40:54 +00:00
Dmitry Stogov
0625e266cd Late Static Binding make no sense in compile-time constants. 2007-10-01 11:25:14 +00:00
Dmitry Stogov
41e9b6b61c Fixed bug #42802 (Namespace not supported in typehints) 2007-10-01 10:37:14 +00:00
Dmitry Stogov
3a3a7e7441 Fixed bug #42798 (__autoload() not triggered for classes used in method signature). 2007-10-01 09:32:48 +00:00
Ilia Alshanetsky
b6817f82b1 Nuke unused vars 2007-09-30 16:53:10 +00:00
Dmitry Stogov
fedf2eddfd Updated API version numbers 2007-09-29 11:25:16 +00:00
Dmitry Stogov
ae14f6ba78 Added "compact" handler for Zend MM storage. 2007-09-29 10:37:29 +00:00
Dmitry Stogov
72d0454bf6 Added support for __callstatic() magic method (missing part). (Sara) 2007-09-29 09:34:24 +00:00
Dmitry Stogov
b20ed0d2e0 Added support for __callstatic() magic method. (Sara) 2007-09-29 08:52:40 +00:00
Dmitry Stogov
c560a96848 Removed commented code 2007-09-29 08:29:56 +00:00
Dmitry Stogov
166266df68 Added support for Late Static Binding. (Dmitry, Etienne Kneuss) 2007-09-29 07:28:34 +00:00
Dmitry Stogov
f32ffe9b43 Namespaces 2007-09-28 19:52:53 +00:00
Jani Taskinen
09b6f37f20 MFH:
- Added ".htaccess" style user-defined php.ini files support for
  CGI/FastCGI.
- Added support for special [PATH=/opt/httpd/www.example.com/] sections
  in php.ini. All directives set in these sections will not be able to be
  overridden in user-defined ini-files or during runtime in the specified
  path.

- Improved php.ini handling:
  . Added better error reporting for syntax errors in php.ini files
  . Allowed "ini-variables" to be used almost everywhere ini php.ini files
  . Allowed using alphanumeric/variable indexes in "array" ini options
  . Fixed get_cfg_var() to be able to return "array" ini options

- Fixed bug #27372 (parse error loading browscap.ini at apache startup)
- Fixed bug #42069 (parse_ini_file() allows using some non-alpha numeric
  characters)
2007-09-28 02:05:10 +00:00
Dmitry Stogov
6c810b0d4c Improved memory usage by movig constants to read only memory. (Dmitry, Pierre) 2007-09-27 18:00:48 +00:00
Ilia Alshanetsky
f6d9901873 Fixed coverity issue #470 Unitialized integer value used inside
zend_ini_boolean_displayer_cb
2007-09-27 17:26:47 +00:00
Jani Taskinen
fc0e59073e MFH:- Fixed bug #42657 (ini_get() returns incorrect value when default is NULL) 2007-09-27 17:05:23 +00:00
Jani Taskinen
6700a20e64 MFH: BC (missed from the patch :) 2007-09-27 16:59:25 +00:00
Jani Taskinen
338a12a018 MFH: Nuked unnecessary TSRMLS_FETCH() call 2007-09-27 16:55:25 +00:00
Jani Taskinen
72e7721393 MFH: missing folding tag + use Z_STR* macros 2007-09-27 16:44:27 +00:00
Jani Taskinen
7668572e26 last ws 2007-09-27 15:59:42 +00:00
Jani Taskinen
c3c0fd2819 ws 2007-09-27 15:56:49 +00:00
Jani Taskinen
c1a4cc358c MFH: ws + cs (more to follow) 2007-09-27 15:53:28 +00:00
Sebastian Bergmann
a748ada212 Bump version. 2007-09-27 05:24:50 +00:00
Johannes Schlüter
9483a2ff23 - Readd support for ynamic access of static members (Etienne) 2007-09-27 00:32:40 +00:00
Ilia Alshanetsky
b26d5f6077 Fixed bug #42767 (highlight_string() truncates trailing comment) 2007-09-26 15:43:58 +00:00
Antony Dovgal
cecbe87656 MFH: add NULL check (coverity issue #385) and fix CS 2007-09-21 14:17:06 +00:00
Jani Taskinen
ba144fd417 - Fix test and tuned error message 2007-09-20 14:11:32 +00:00
Antony Dovgal
77951494b7 MFH 2007-09-19 11:25:57 +00:00
Jani Taskinen
c29136bd08 - Fixed bug #42629 (Dynamically loaded PHP extensions need symbols exported on MacOSX) 2007-09-18 09:24:04 +00:00
Ilia Alshanetsky
8ff31493b7 Fixed bug #42590 (Make the engine recornize \v and \f escape sequences) 2007-09-09 16:33:34 +00:00
Jani Taskinen
9025c2a891 - Can not remove because of the idiotic ZEND_STR*() macros 2007-09-07 14:15:17 +00:00
Jani Taskinen
2b69d18e49 - Added reminder for 5.3 2007-09-07 10:00:45 +00:00
Jani Taskinen
822400d78f - Missed this from previous commit to zend_ini.h 2007-09-07 09:59:50 +00:00
Jani Taskinen
2a528a158a - No need to break binary compatibility here 2007-09-07 09:55:37 +00:00
Jani Taskinen
82626c1868 MFH: - Fixed the rest of bug #41561 ( @ operator not working ) 2007-09-07 09:37:38 +00:00
Jani Taskinen
510ad20616 MFH: folding tags 2007-09-07 09:35:06 +00:00
Antony Dovgal
2198abb1c4 MFH: detect endianness in compile time when using Apple's GCC (fixes universal binary build) 2007-09-04 18:46:21 +00:00
Antony Dovgal
90d58d4668 MFH: prohibit arguments by ref in magic methods 2007-08-31 12:36:14 +00:00
Jani Taskinen
6066b01d1b MFH: Revert revert. 2007-08-31 07:52:29 +00:00
Sebastian Bergmann
d0d1e42c75 Add optional parameter to debug_backtrace(). 2007-08-30 07:43:21 +00:00
Antony Dovgal
8a3b3e9365 MFH: revert the patch which breaks multithreaded servers 2007-08-23 18:42:42 +00:00
Dmitry Stogov
1aab36e3f2 Fixed bug #42009 (is_a() and is_subclass_of() should NOT call autoload, in the same way as "instanceof" operator). 2007-08-22 13:19:48 +00:00
Stanislav Malyshev
c8f090c13e Revert variable class patch for 5.2 2007-08-13 21:16:57 +00:00
Dmitry Stogov
ef71664817 Fixed bug #42211 (property_exists() fails to find protected properties from a parent class) 2007-08-08 13:32:46 +00:00
Dmitry Stogov
6aa06fc7fb Fixed test 2007-08-08 06:42:10 +00:00
Antony Dovgal
fd088beb06 fix test names 2007-08-03 13:50:20 +00:00
Stanislav Malyshev
0ad85237ea add stage for .htaccess 2007-08-02 23:57:52 +00:00
Stanislav Malyshev
a019d99e3f it's 4 either way, but it's customary to use 1<< 2007-08-02 23:54:19 +00:00
Antony Dovgal
00b3df2ad3 fix test 2007-08-02 22:28:06 +00:00
Johannes Schlüter
b3c6a9dffc - Add possibility to call static class members using variables (Etienne Kneuss) 2007-08-02 21:55:23 +00:00
Antony Dovgal
48d5519378 MFH: int -> zend_bool 2007-08-02 20:32:44 +00:00
Johannes Schlüter
c0667eeaff - MFH: Respect value of the parameter for get_loaded_extensions() and only
print zend extensions if set to true
2007-08-02 16:54:44 +00:00
Dmitry Stogov
a382ede3e8 Fixed bug #42119 (array_push($arr,&$obj) doesn't work with zend.ze1_compatibility_mode On) 2007-08-01 10:56:45 +00:00
Johannes Schlüter
ebaba40774 - MFH: Add additional param to get_loaded_extensions() for returning Zend
extensions (Fixes #41278) [DOC]
2007-07-31 22:47:25 +00:00
Dmitry Stogov
786621893e Improved fix for bug #41633 (self:: doesn't work for constants) to support function define() 2007-07-27 16:29:12 +00:00
Dmitry Stogov
d0ef6e9a95 Fixed bug #41713 (Persistent memory consumption on win32 since 5.2) 2007-07-25 11:13:00 +00:00
Dmitry Stogov
e13b4c2c4e Fixed bug #40705 (Iterating within function moves original array pointer)
Fixed bug #40509 (key() function changed behaviour if global array is used within function)
2007-07-24 19:24:40 +00:00
Dmitry Stogov
4035a8ebc0 Fixed bug #41372 (Internal pointer of source array resets during array copying)
Fixed bug #37715 (array pointers resetting on copy)
2007-07-24 18:28:39 +00:00
Dmitry Stogov
7ec48cb37f Fixed bug #40757 (get_object_vars get nothing in child class)
Fixed bug #41929 (Foreach on object does not iterate over all visible properties)
2007-07-24 11:39:56 +00:00
Jani Taskinen
c9f6d5941e MFH: - Fixed buf #42071 (ini scanner allows using NULL as option name).
MFH: Use Z_* macros to access the zvals.
2007-07-23 16:17:10 +00:00
Jani Taskinen
226c56fe76 MFH: Fixed compiler warnings 2007-07-21 00:35:15 +00:00
Jani Taskinen
fb7efdab86 MFH: Use SEPARATE_ZVAL_IF_NOT_REF for cleaner code. 2007-07-19 15:29:30 +00:00
Jani Taskinen
184b2e5d20 MFH 2007-07-19 13:57:16 +00:00
Ilia Alshanetsky
33329c065c revise test to reflect recent code 2007-07-12 23:34:32 +00:00
Ilia Alshanetsky
4e68effc2e Commit previously missing patch for bug #41919 2007-07-12 23:33:50 +00:00
Dmitry Stogov
ed10530eb5 Fixed bug #41961 (Ensure search for hidden private methods does not stray from class hierarchy). (robin_fernandes at uk dot ibm dot com) 2007-07-12 10:32:09 +00:00
Antony Dovgal
f0dd5f5d52 new test 2007-07-12 09:29:07 +00:00
Zoe Slattery
5d0ee5b518 array copy on write tests 2007-07-09 13:23:37 +00:00
Dmitry Stogov
9f62beabfd Fixed bug #41919 2007-07-09 08:53:14 +00:00
Ilia Alshanetsky
aeaf26b86d Fixed bug #41919 (crash in string to array conversion) 2007-07-08 15:28:46 +00:00
Antony Dovgal
0cfa8b1a66 MFH 2007-07-06 12:17:58 +00:00
Antony Dovgal
6e48ec45dd fix test 2007-06-27 17:04:15 +00:00
Zoe Slattery
af85497e8f Tests constant initialisation 2007-06-27 14:50:21 +00:00
Antony Dovgal
feb142cb79 add test 2007-06-27 08:55:27 +00:00
Antony Dovgal
8e26df9523 fix #41813 (segmentation fault when using string offset as an object)
patch by judas dot iscariote at gmail dot com
2007-06-27 08:51:40 +00:00
Ilia Alshanetsky
32c5a87a14 Fixed zend_alter_ini_entry() memory_limit interruption vulnerability. 2007-06-17 14:31:12 +00:00
Dmitry Stogov
1c7fa8fb4c Fixed bug #41633 (Crash instantiating classes with self-referencing constants) 2007-06-13 16:48:10 +00:00
Dmitry Stogov
28bc39500a Fixed some class constant issues related to bug #41633 2007-06-13 14:50:13 +00:00
Raghubansh Kumar
38c095a44f New testcase for get_defined_vars() function: get_defined_vars.phpt 2007-06-11 16:04:43 +00:00
Raghubansh Kumar
4f33b594ac New testcase for unset(), isset() and empty functions : 019.phpt 2007-06-11 15:55:44 +00:00
Johannes Schlüter
1351bc4e86 Fix #41640 (get_class_vars produces error on class constants) 2007-06-09 08:38:44 +00:00
Antony Dovgal
0ca8dab47d MFH: fix #41561 (Values set with php_admin_* in httpd.conf can be overwritten with ini_set()) 2007-06-08 14:47:45 +00:00
Antony Dovgal
91da96ba71 MFH: change E_NOTICE to E_ERROR when using a class constant from non-existent class
(noticed by Jani)
add tests
2007-06-07 08:37:40 +00:00
Antony Dovgal
e029945a02 MFH: minor optimization - make sure the objects are not the same instance before we start comparing their properties 2007-06-06 11:57:36 +00:00
Antony Dovgal
3790227f9d MFH: fix #41608 (segfault on a weird code with objects and switch()) 2007-06-06 08:35:23 +00:00
Antony Dovgal
23eaae2211 MFH 2007-05-30 16:32:02 +00:00
Antony Dovgal
770790af04 set module in internal_function struct 2007-05-30 10:17:43 +00:00
Antony Dovgal
a841027cca MFH 2007-05-28 10:07:50 +00:00
Dmitry Stogov
9bca44df22 Impoved error reporting on parser errors (Matt, Dmitry) 2007-05-24 08:56:35 +00:00
Antony Dovgal
04aefb4e18 MFH 2007-05-21 07:12:41 +00:00
Stanislav Malyshev
cfedafff67 add test for 41401 2007-05-18 20:13:28 +00:00
Stanislav Malyshev
bc2b546dcc fix #41401 - parser precedence on unary operators
# now 1/-2*5 is -2.5 as it should be
2007-05-18 18:36:04 +00:00
Dmitry Stogov
80d2409fd8 Improved compilation of heredocs and interpolated strings. (Matt, Dmitry) 2007-05-18 13:12:05 +00:00
Antony Dovgal
d7b30e457a MFH: fix #41421 (Uncaught exception from a stream wrapper segfaults) 2007-05-18 11:52:08 +00:00
Marcus Boerger
bfbbe4110e - MFH Extensions are indexed lowercased and not case aware 2007-05-16 18:57:15 +00:00
Antony Dovgal
c8cfd3b99a MFH: fix #41134 (zend_ts_hash_clean not thread-safe)
fix also zend_ts_hash_*destroy()
2007-05-11 12:21:26 +00:00
Antony Dovgal
756f3f60ca MFH: fix #41351 (Invalid opcode with foreach ($a[] as $b)) 2007-05-11 09:39:36 +00:00
Dmitry Stogov
d2fe65c191 Fixed bug #39542 (Behaviour of require/include different to < 5.2.0) 2007-05-11 08:02:43 +00:00
Antony Dovgal
56a27267f3 fix tests 2007-05-07 22:10:14 +00:00
Antony Dovgal
b64823deb7 fix test names 2007-05-07 17:54:12 +00:00
Antony Dovgal
fa14b60e68 add 64bit version of the tests 2007-05-07 14:00:40 +00:00
Antony Dovgal
3000c0be66 fix tests, add more 2007-05-05 21:44:52 +00:00
Antony Dovgal
b1b4b0a6a7 fix comments 2007-05-04 16:19:57 +00:00
Antony Dovgal
3f8c011a9a add tests 2007-05-04 12:46:18 +00:00
Antony Dovgal
1d6fea0e55 MFH 2007-05-04 08:27:33 +00:00
Dmitry Stogov
d8ce0568ef Fixed altering $this via argument named "this" 2007-05-04 06:18:53 +00:00
Johannes Schlüter
f50ec4ea53 - MFH: Fix skipif 2007-05-03 12:44:48 +00:00
Dmitry Stogov
df61bae636 Reverted the following fixed because of php-5.2.2 release process
- Fixed altering $this via argument named "this".
- Fixed bug #41097 (ext/soap returning associative array as indexed without
  using WSDL).
- Fixed bug #41004 (minOccurs="0" and null class member variable).
2007-05-02 17:24:16 +00:00
Antony Dovgal
fca80f63fb add SKIPIF section 2007-05-02 15:41:22 +00:00
Dmitry Stogov
688cc5039a Fixed altering $this via argument named "this" 2007-05-02 13:21:55 +00:00
Johannes Schlüter
e181e3ac7b - MFH Fix "f" modifier for zend_parse_parameters_ex in case of a __call call
# only affects iterator_apply() in 5_2 branch
2007-04-30 19:54:41 +00:00
Antony Dovgal
c3b9d939e0 add new tests 2007-04-28 11:59:08 +00:00
Antony Dovgal
70e6d3d042 add new tests 2007-04-27 21:33:02 +00:00
Antony Dovgal
de4f3007e2 MFH: initialize retval_ptr_ptr before returning FAILURE
this fixes invalid read in #41209
2007-04-27 08:12:24 +00:00
Antony Dovgal
66859a74de fix tests 2007-04-26 23:30:00 +00:00
Antony Dovgal
ef32c956f7 MFH 2007-04-26 23:13:25 +00:00
Antony Dovgal
3c6d2617e7 MFH: fix build on Tru64 2007-04-26 19:08:58 +00:00
Dmitry Stogov
b1aea75ac1 WIN64 support 2007-04-23 09:56:30 +00:00
Antony Dovgal
f6cef916bc MFH: fix #41118 (PHP does not handle overflow of octal integers) 2007-04-22 21:33:10 +00:00
Antony Dovgal
60e1a548ff new test 2007-04-20 09:17:46 +00:00
Antony Dovgal
18af8baa44 MFH 2007-04-20 07:55:21 +00:00
Antony Dovgal
9ad2c80c62 fix double-to-string conversion utils 2007-04-19 09:30:49 +00:00
Dmitry Stogov
c60eee7046 typo 2007-04-17 06:26:32 +00:00
Dmitry Stogov
e1814f0dbe WIN64 support 2007-04-16 08:09:56 +00:00
Antony Dovgal
bb0def99a8 fix #41075 (memleak when creating default object caused exception) 2007-04-13 14:41:36 +00:00
Antony Dovgal
d3df2eb468 add new test 2007-04-13 13:37:17 +00:00
Antony Dovgal
8d20caa848 minor improvement 2007-04-11 22:34:48 +00:00
foobar
26761c4222 - Fixed ZEND_SIGNED_MULTIPLY_LONG() so that ext/filter/tests/046.phpt wont fail. (Integer overflow) 2007-04-10 10:57:35 +00:00
Dmitry Stogov
4de76f02ea Fixed 64-bit support 2007-04-09 15:38:58 +00:00
Antony Dovgal
b2e2994a6e fix #41026 (segfault when calling "self::method()" in shutdown functions) 2007-04-09 07:30:09 +00:00
Ilia Alshanetsky
d9adb6715f Fixed foreach by-ref bug.
# Patch from Brian Shire
2007-04-05 23:48:43 +00:00
Marcus Boerger
9c5ea420ac - MFH zend_info_call_*() stuff, fixes coverity issue #328, noticed by tony 2007-04-05 19:49:42 +00:00
Ilia Alshanetsky
17c0c49a54 Addres limitation of __HALT_COMPILER() that allowed only one instance
per request.

# Patch by Greg Beaver
2007-04-04 00:42:42 +00:00
Hannes Magnusson
d677506541 Typo 2007-03-25 11:47:27 +00:00
Stanislav Malyshev
008259dba8 fix comment - guard system changed 2007-03-23 17:16:55 +00:00
Dmitry Stogov
6458e42496 Fixed bug #40899 (memory leak when nesting list()) 2007-03-23 12:46:16 +00:00
Dmitry Stogov
2dd2ac6d50 Fixed bug #40883 (mysql_query() is allocating memory incorrectly). (Tony) 2007-03-23 07:59:26 +00:00
Dmitry Stogov
d514bf27a6 Improved Zend Memory Manager to guarantee reasonable time for worst cases of best-fit free block searching algorithm. 2007-03-20 06:46:48 +00:00
Dmitry Stogov
b0a875104e Fixed bug #40833 (Crash when using unset() on an ArrayAccess object retrieved via __get()) 2007-03-19 18:31:30 +00:00
Antony Dovgal
79ed194a64 fix #40815 (using strings like "class::func" and static methods in set_exception_handler() might result in crash) 2007-03-15 16:44:12 +00:00
Antony Dovgal
e5b5f00949 MFH: fix #40800 (cannot disable memory_limit with -1) 2007-03-14 11:58:05 +00:00
Dmitry Stogov
ab699d03bc Fixed bug #40770 (Apache child exits when PHP memory limit reached) 2007-03-12 16:59:52 +00:00
Antony Dovgal
30f45e15de MFH: fix #40784 (Case sensivity in constructor's fallback) 2007-03-12 13:10:40 +00:00
Stanislav Malyshev
8779d1cdd3 fix crash on $x['x']['y'] += 1, patch by Brian Shire 2007-03-08 20:59:31 +00:00
Ilia Alshanetsky
0638ac7651 Fixed calloc wrapper 2007-03-07 00:55:49 +00:00