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
Ilia Alshanetsky
f6343f45f2
Add checks around raw allocation code
2007-03-07 00:47:42 +00:00
Antony Dovgal
a806ce9700
MFH
2007-03-06 21:08:05 +00:00
Antony Dovgal
db8bbdc2a9
MFH: declare zend_mm_random() only when needed
2007-03-06 20:59:13 +00:00
Ilia Alshanetsky
37da90248d
Added missing allocation checks
2007-03-06 03:15:41 +00:00
Marcus Boerger
b15d1f22ef
- Catch empty class name error earlier
2007-03-03 13:45:14 +00:00
Dmitry Stogov
c373324692
Fixed bug #40591 (list()="string"; gives invalid opcode)
2007-02-25 16:02:43 +00:00
Antony Dovgal
e058ba92f9
MFH: fix #40621 (Crash when constructor called inappropriately (statically))
2007-02-24 21:30:48 +00:00
Marcus Boerger
50ea26760d
- Avoid sprintf, even when checked copy'n'paste or changes lead to errors
2007-02-24 02:17:47 +00:00
Dmitry Stogov
149dd625be
Special case for last iteration
2007-02-21 14:11:00 +00:00
Antony Dovgal
8185f4550e
MFH: fix #40545 (multithreading issue in zend_strtod())
2007-02-20 12:00:58 +00:00
Antony Dovgal
13ca6ed9fa
MFH: fix heap protection on SPARC, required by GCC4
...
patch by Dmitry
2007-02-19 18:29:31 +00:00
Antony Dovgal
772e35e99a
MFH: fix test
2007-02-19 12:19:44 +00:00
Antony Dovgal
704b191d6a
fix typo
2007-02-16 23:49:48 +00:00
Stanislav Malyshev
624dd135a8
fix typo
2007-02-16 18:10:36 +00:00
Stanislav Malyshev
4274449a02
add safe_realloc
2007-02-16 18:06:28 +00:00
Dmitry Stogov
574630190e
Allow C++ extensions to use CG(), EG() ... (Caroline)
2007-02-16 08:54:17 +00:00
Dmitry Stogov
b6a2b760dc
Fixed zend_llist_remove_tail (Michael Wallner)
2007-02-16 08:33:28 +00:00
Dmitry Stogov
0291ad5fa6
Fixed bug #40236 (php -a function allocation eats memory)
2007-02-15 10:38:28 +00:00
Antony Dovgal
29a9ba9639
new/improved tests
2007-02-13 12:59:53 +00:00
Antony Dovgal
0f0fe9c967
MFH: new tests
2007-02-07 11:10:32 +00:00
Dmitry Stogov
44297ddea8
Removed dead code
2007-02-01 16:23:28 +00:00
Dmitry Stogov
ed30d91cd6
Fixed possible crash because of dereference of NULL
2007-02-01 15:23:46 +00:00
Dmitry Stogov
009f5a3937
Enable canary protection in DEBUG mode only.
2007-02-01 15:08:10 +00:00
Antony Dovgal
b24fd9a3d6
fix test
2007-01-22 08:55:47 +00:00
Antony Dovgal
d2c5721f41
MFH: catch overflow right away
2007-01-20 23:10:02 +00:00
Ilia Alshanetsky
4383f51c44
Syntax highlighting fix for hex numbers.
...
# Patch by Matt Wilmas
2007-01-18 23:28:08 +00:00
Antony Dovgal
b6a89efcda
fix folding
2007-01-18 12:20:15 +00:00
Antony Dovgal
4fca731b0b
fix test
2007-01-15 10:31:14 +00:00
Antony Dovgal
7b70e5be45
missing comma
2007-01-15 10:08:34 +00:00
Antony Dovgal
9ca5652f70
fix error message and #40111
2007-01-15 10:04:44 +00:00
Dmitry Stogov
2f586e965e
Fixed bug #39969 (ini setting short_open_tag has no effect when using --enable-maintainer-zts)
2007-01-12 14:37:46 +00:00
Dmitry Stogov
2e1a2438b5
Fixed bug #35634 (Erroneous "Class declarations may not be nested" error raised). (Carl P. Corliss)
2007-01-11 16:47:32 +00:00
Dmitry Stogov
e470e22e20
- Fixed bug #35106 (nested foreach fails when array variable has a reference).
...
- Fixed bug #36214 (__get method works properly only when conditional operator is used).
- Fixed bug #39449 (Overloaded array properties do not work correctly).
- Fixed bug #39990 (Cannot "foreach" over overloaded properties).
2007-01-10 15:58:08 +00:00
Andrei Zmievski
39fa36a0be
Fix 'b' prefix in highlighting and tokenizer. (Matt W)
2007-01-09 17:37:53 +00:00
Dmitry Stogov
38f942b880
Fixed bug #40076 (zend_alloc.c: Value of enumeration constant must be in range of signed integer)
2007-01-09 15:29:14 +00:00
Dmitry Stogov
8c086cae23
Fixed bug #40002 (Try/Catch performs poorly)
2007-01-09 15:06:07 +00:00
Dmitry Stogov
cbd9822ed9
Bump year.
2007-01-09 11:53:08 +00:00
Sebastian Bergmann
4223aa4d5e
MFH: Bump year.
2007-01-01 09:36:18 +00:00
Ilia Alshanetsky
6895045565
Simplify & optimize code
...
# Patch by Matt Wilmas
2006-12-30 01:57:01 +00:00
Antony Dovgal
7b281be1ee
that was not intentional
...
thanks Nuno
2006-12-28 22:12:08 +00:00
Antony Dovgal
28421f4f19
MFH
2006-12-28 21:02:14 +00:00
Ilia Alshanetsky
96d9d6f0f1
Avoid strcpy() & strcat()
2006-12-28 00:17:48 +00:00
Ilia Alshanetsky
d101e113cf
Fixed compiler warning
2006-12-26 17:17:52 +00:00
Ilia Alshanetsky
ff9d0fcc78
is_numeric_string() optimization
...
# Original Patch by Matt Wilmas
2006-12-26 16:44:20 +00:00
Ilia Alshanetsky
b85f1345a6
Ensure that OnUpdateLongGEZero is greater or equal to 0.
...
Added a update wrapper for ensuring >0 values
2006-12-25 23:55:59 +00:00
Dmitry Stogov
4480c5eb5d
Fixed bug #39825 (foreach produces memory error)
2006-12-25 19:23:03 +00:00
Dmitry Stogov
e57a60698b
Fixed bug #39944 (References broken)
2006-12-25 14:16:27 +00:00
Dmitry Stogov
5823a2d28a
Fixed possible size_t overflow
2006-12-25 12:16:33 +00:00
Antony Dovgal
bed14f8ab7
MFH
2006-12-21 11:08:00 +00:00
Ilia Alshanetsky
5ead613386
Fix a possible memory leak
2006-12-21 02:09:36 +00:00
Ilia Alshanetsky
dba3fe385d
Fixed possible memory leak
2006-12-21 01:57:05 +00:00
Antony Dovgal
d040ec9b8e
MFH
2006-12-20 23:19:56 +00:00
Antony Dovgal
bbb923c7a8
MFH
2006-12-20 23:01:31 +00:00
Antony Dovgal
698ea5f48e
MFH
2006-12-20 19:08:48 +00:00
Andrei Zmievski
0d7af28a40
More correct patch for b-prefixes.
2006-12-20 18:22:07 +00:00
Antony Dovgal
c348c293c8
MFH: fix #39903 (Notice message when executing __halt_compiler() more than once)
2006-12-20 16:31:10 +00:00
Antony Dovgal
ea013f92e9
use Z_* macros
2006-12-20 16:00:11 +00:00
Dmitry Stogov
53b088e60c
Make MEMORY_LIMIT and ZEND_USE_MALLOC_MM to be always enabled. They don't make any significant slowdown, but incrise maintainability a lot. Note that the setting of memory_limit wasn't changes (neither in main/main.c nor in php.ini) and it still set to 16M.
2006-12-20 10:49:33 +00:00
Hannes Magnusson
1e19ee8785
- Fixed incorrect function names on FreeBSD where inet_pton() was named
...
__inet_pton() and inet_ntop() was named __inet_ntop()
- Fixed bug #39685 (iconv() - undefined function)
- Fixed bug #38852 (XML-RPC Breaks iconv)
2006-12-20 10:34:36 +00:00
Andrei Zmievski
16ea2ee640
Support 'b' prefix in front of string literals for forward compatibility
...
with PHP 6.
2006-12-19 17:26:17 +00:00
Hannes Magnusson
b12e3e1475
Fix tests
2006-12-19 10:03:24 +00:00
Dmitry Stogov
1763dc162d
Fixed random generation of cookies and canaries
2006-12-18 11:39:19 +00:00
Dmitry Stogov
cfbd58c987
MFH: __builtin_expect() exists only in GCC 3.0 and higher
2006-12-18 08:59:40 +00:00
Andi Gutmans
5e36d7fcfe
- I prefer cookie to be the first element.
2006-12-15 17:03:42 +00:00
Dmitry Stogov
bf9e3e769c
Added internal heap protection
...
. safe unlinking
. cookies
. canary protection (debug build only)
2006-12-15 13:25:26 +00:00
Sara Golemon
db87e11e6b
MFH: Bugfix# 39435: 'foo' instanceof bar gives invalid opcode error
2006-12-12 23:25:23 +00:00
Ilia Alshanetsky
5218d956f0
Fixed typo
2006-12-11 15:59:41 +00:00
Ilia Alshanetsky
19e4dc5058
Removed bool<>long optimization as it causes issues with strict type checks
2006-12-11 15:34:35 +00:00
Ilia Alshanetsky
7e1973d9fc
Minor optimization (2-3%) from Brian Shire
2006-12-11 15:16:07 +00:00
Dmitry Stogov
108a2fc64c
Fixed bug #39775 ("Indirect modification ..." message is not shown)
...
The fix breaks two SimpleXML tests those must be fixed
2006-12-08 15:55:31 +00:00
Dmitry Stogov
dd9b5a08f0
Fixed possible failure
2006-12-08 12:47:45 +00:00
Antony Dovgal
feba2edba2
initialize variables
2006-12-07 20:45:58 +00:00
Antony Dovgal
b4d0d872e7
MFH
2006-12-06 10:49:27 +00:00
Antony Dovgal
4d44a5b71d
MFH: 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:52:51 +00:00
Dmitry Stogov
68890ce196
Fixed bug #39721 (Runtime inheritance causes data corruption)
2006-12-05 19:03:51 +00:00
Dmitry Stogov
8f5786b6e8
Removed unused zend_mm.*
2006-12-05 08:07:57 +00:00
Stanislav Malyshev
6b651f8e60
Improve tolower()-related functions on Windows and VC2005 by caching locale and using
...
tolower_l function.
# Gives 10-18% speedup on bench.php
# Does not change behaviour for non-windows
2006-12-04 18:37:15 +00:00
Dmitry Stogov
f7bc516502
Fixed bug #38274 (Memlimit fatal error sent to "wrong" stderr when using fastcgi)
2006-12-04 16:20:02 +00:00
Dmitry Stogov
abc5bb5f61
Bug #39438 (Fatal error: Out of memory)
2006-12-01 20:01:50 +00:00
Dmitry Stogov
e70d7cfc90
typo
2006-12-01 19:41:57 +00:00
Dmitry Stogov
0742edb396
Fixed bug #39702 (php crashes in the allocator on linux-m68k)
2006-12-01 15:33:06 +00:00
Dmitry Stogov
de9574e872
Fixed bug #39640 (Segfault with "Allowed memory size exhausted")
2006-12-01 13:54:29 +00:00
Dmitry Stogov
e8e9810dd9
Fixed bug #39652 (Wrong negative results from memeory_get_usage())
2006-12-01 11:42:20 +00:00
Antony Dovgal
57130c653a
fix test
2006-11-30 13:09:32 +00:00
Antony Dovgal
0966666256
MFH: resolve coverity issue #224
2006-11-28 21:20:33 +00:00
Antony Dovgal
090215cc7f
nullify opened_path and filename (when required)
...
fixes invalid reads with `php-cli -F <script>`
2006-11-23 22:04:54 +00:00
Dmitry Stogov
c663787ab4
Fixed bug #39534 (Error in maths to calculate of ZEND_MM_ALIGNED_MIN_HEADER_SIZE). (wharmby at uk dot ibm dot com)
2006-11-23 09:32:39 +00:00
Dmitry Stogov
6a8f267db6
Fixed bug #39602 (Invalid session.save_handler crashes PHP)
2006-11-23 08:07:05 +00:00
Antony Dovgal
1c6ee3030e
add test
2006-11-21 11:11:39 +00:00
Antony Dovgal
eb666b725f
MFH: fix proto
2006-11-21 10:48:29 +00:00
Dmitry Stogov
3f92ab719f
typo
2006-11-15 17:53:27 +00:00
Antony Dovgal
9d6f7755b8
fix leak appearing when converting object to NULL
...
add test
2006-11-15 17:29:08 +00:00
Dmitry Stogov
842b1b5a47
Fixed bug #39445 (Calling debug_backtrace() in the __toString() function produces a crash)
2006-11-15 16:05:11 +00:00
Dmitry Stogov
f00ee72c35
Fixed incorrect heap corruptiuon detection code
2006-11-13 10:28:46 +00:00
Derick Rethans
140edac7f9
- Forward port the binary cast, which will do the same as the string cast in
...
PHP 5.2.
2006-11-10 12:02:51 +00:00
Dmitry Stogov
011e0cde62
Start timiout thread on Windows only if necessary
2006-11-10 11:49:35 +00:00
Dmitry Stogov
f1b6587ebb
Zend Memory Manager Improvements
...
. use HeapAlloc() instead of VirtualAlloc()
. use "win32" storage manager (instead of "malloc") on Windows by default
2006-11-10 10:44:40 +00:00
Dmitry Stogov
cc895444b1
HashTable copying optimization (Matt Wilmas)
2006-11-08 16:02:03 +00:00
Dmitry Stogov
41ae8de136
Fixed bug #39297 (Memory corryption because of indirect modification of overloaded array).
2006-11-08 13:38:28 +00:00
Dmitry Stogov
a84a2eae6a
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:27 +00:00
Ilia Alshanetsky
cb96148912
Fixed bug #33282 (Re-assignment by reference does not clear the is_ref flag)
...
# Original patch by Matt Wilmas
2006-11-07 20:23:30 +00:00
Marcus Boerger
da8b00a5e4
- MFH: Fixed bug #39320
2006-11-03 19:02:16 +00:00
Marcus Boerger
978dd0fdd9
- MFH: Fix issue with some mangeled properties
2006-11-03 19:01:40 +00:00
Dmitry Stogov
7ff822ee49
Fixed bug #39304 (Segmentation fault with list unpacking of string offset)
2006-10-30 11:05:00 +00:00
Hannes Magnusson
f8e4467725
Fix test
2006-10-20 14:42:37 +00:00
Ilia Alshanetsky
3b1e299264
Make use of abstract methods be E_STRICT rather then E_ERROR
2006-10-20 02:44:26 +00:00
Johannes Schlüter
2193a77eed
- Here, too
2006-10-18 17:17:18 +00:00
Johannes Schlüter
6841110122
- MFH: added missing return...
2006-10-18 17:04:49 +00:00
Johannes Schlüter
dcf249004c
- MFH: Fix #38465 (ReflectionParameter fails if default value is an access to self::
2006-10-18 16:35:15 +00:00
Dmitry Stogov
31acd1c26e
Fixed bug #39140 (Uncaught exception may cause crash)
2006-10-16 11:13:08 +00:00
Dmitry Stogov
e6fd66facb
Make zend_memory_peak_usage() to be avalable even without --enable-memory-limit
2006-10-12 06:46:51 +00:00
Antony Dovgal
630024d895
MFH
2006-10-11 16:11:56 +00:00
Sara Golemon
eed736d010
MFH(r-1.376): Preserve EG(return_value_ptr_ptr) when calling zend_execute_scripts()
...
Reapplying this since it looks like we'll be doing a PHP 5.2 RC6 after all
2006-10-06 16:50:21 +00:00
Sara Golemon
fd9b7f672b
Revert until 5.2's release since we're in RC stage
2006-10-06 00:02:56 +00:00
Sara Golemon
67fac322af
MFH(r-1.376): Preserve EG(return_value_ptr_ptr) when calling zend_execute_scripts()
2006-10-05 23:32:52 +00:00
Dmitry Stogov
ff3dfa94dd
Allow future extensibility without binary compatibility break
2006-10-05 08:08:57 +00:00
Antony Dovgal
dc22b7d4a5
add test
2006-10-04 13:35:51 +00:00
Antony Dovgal
8e1c9371bb
MFH: throw a warning when doing modulus by 0 (fr #39027 )
2006-10-03 17:54:51 +00:00
Dmitry Stogov
c1ad451c3e
Speedup array/HashTable copying. (Matt W)
2006-10-03 11:10:33 +00:00
Dmitry Stogov
9875fe44e2
Fixed bug #39017 (foreach(($obj = new myClass) as $v); echo $obj; segfaults)
2006-10-03 09:05:14 +00:00
Dmitry Stogov
9dcdfd993f
Fixed memory leak (Nuno)
2006-10-03 07:30:46 +00:00
Antony Dovgal
2b1b2db8ec
MFH: fix #39003 (__autoload() is called for type hinting)
2006-10-02 11:09:52 +00:00
Ilia Alshanetsky
4fd88b23cc
Added safety checks against integer overflow.
2006-09-30 17:12:06 +00:00
Antony Dovgal
40924a6f6c
new tests
2006-09-28 12:03:49 +00:00
Antony Dovgal
c119d63a9f
add new tests
2006-09-28 11:44:05 +00:00
Dmitry Stogov
ecd52167d7
Fixed wrong return value
2006-09-28 07:16:31 +00:00
Antony Dovgal
47600225e1
MFH: use if() instead of ?:
2006-09-27 15:40:19 +00:00
Dmitry Stogov
c3272ab020
Fixed bug #38808 ("maybe ref" issue for current() and others)
2006-09-26 10:30:51 +00:00
Dmitry Stogov
a04b6ed6bc
Fixed bug #38942 (Double old-style-ctor inheritance)
2006-09-26 07:55:21 +00:00
Dmitry Stogov
cd6537ed6d
Fixed bugs #34065 and #38623 (throw in foreach/switch causes memory leaks)
2006-09-19 21:36:54 +00:00
Dmitry Stogov
7d14dad02e
MFH: Fixed mess with CGI/CLI -d command line option (now it works with cgi; constants are working exactly like in php.ini; with FastCGI -d affects all requests).
2006-09-19 20:33:12 +00:00
Dmitry Stogov
8982cc0472
Small optimization of ZEND_INIT_ARRAY/ZEND_ADD_ARRAY_ELEMENT. (Nuno, Dmitry)
2006-09-18 14:23:52 +00:00
Dmitry Stogov
a16cb0b4d5
Fixed non-specialized executor
2006-09-18 12:03:10 +00:00
Dmitry Stogov
806bc4e164
Reinamed variables to avoid name conflicts
2006-09-14 10:32:45 +00:00
Dmitry Stogov
2604f21fa6
Removed unused macro USE_ZEND_ALLOC
2006-09-14 09:58:27 +00:00
Dmitry Stogov
27c327b97e
Added is_zend_mm() to allow runtime check for zend memory manager
2006-09-14 08:00:44 +00:00
Antony Dovgal
0680cc4360
fix tests on MacOS
2006-09-13 13:59:16 +00:00
Dmitry Stogov
7e17f8591a
Fixed bug #38772 (inconsistent overriding of methods in different visibility contexts)
2006-09-12 11:01:16 +00:00
Antony Dovgal
d6ee9d4810
MFH: fix #38779 (engine crashes when require()'ing file with syntax error through userspace stream wrapper)
2006-09-11 14:30:08 +00:00
Antony Dovgal
0a1f5d12a1
fix tests
2006-09-11 14:17:51 +00:00
Antony Dovgal
5a9f40a46a
add tests
2006-09-11 14:13:25 +00:00
Antony Dovgal
6d040bf67a
fix test
2006-09-11 08:08:20 +00:00
Dmitry Stogov
0c3c55edac
Fixed php_admin* bypass by ini_restore()
2006-09-06 08:54:44 +00:00
Dmitry Stogov
afb8af1f5f
Reverted last Ilia's patch (for bug #38579 ).
...
The patch didn't fix the bug and made new one.
2006-09-06 06:37:42 +00:00
Ilia Alshanetsky
229137cad4
Fixed bug #38579 require_once/include_once optimization causes files to be
...
loaded multiple times.
2006-09-05 15:50:07 +00:00
Dmitry Stogov
87eaaf494b
Removed unreachable handlers
2006-09-04 13:58:54 +00:00
Dmitry Stogov
54123daa8d
Show name of storage layer in case of initialization fault.
2006-08-31 11:53:57 +00:00
Antony Dovgal
235e3939d5
s/pinter/pointer/
2006-08-30 22:29:24 +00:00
Antony Dovgal
191d68618a
delete commented part, as it was done in HEAD
2006-08-28 10:59:18 +00:00
Antony Dovgal
f7ba7232d8
MFH: fix #38624 (Strange warning when incrementing an object property and exception is thrown from __get method)
2006-08-28 10:27:58 +00:00
Dmitry Stogov
c42b3bf689
Fixed bug #38315 (Constructing in the destructor causes weird behaviour)
2006-08-24 09:42:35 +00:00
Dmitry Stogov
27d3021704
Fixed bug #38265 (heap corruption)
2006-08-23 13:00:48 +00:00
Dmitry Stogov
4180155a47
Fixed "win32" storage manager
2006-08-22 05:54:15 +00:00
Ilia Alshanetsky
8405e1741f
Use proper write callback
2006-08-19 16:20:08 +00:00
Antony Dovgal
be316018fd
apply correct fix for bug #38461
2006-08-15 20:30:42 +00:00
Antony Dovgal
08d398aa48
MFH: fix #38461 (setting private attribute with __set() produces segfault)
2006-08-15 13:19:13 +00:00
Antony Dovgal
4ad05e0e0f
add test
2006-08-15 08:58:40 +00:00
Antony Dovgal
6277ba98d9
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:54:24 +00:00
Derick Rethans
5794832a72
- Added some docs here so that nobody needs to figure it out once more.
2006-08-08 09:46:46 +00:00
Antony Dovgal
b8617a6183
add zend_memrchr()
2006-08-08 09:41:09 +00:00
Marcus Boerger
05206b42d8
- Speling
2006-08-08 00:40:19 +00:00
Marcus Boerger
c1c2a0d294
- MFH Fixed Bug #38064 ignored constructor visibility
2006-08-07 23:24:33 +00:00
Dmitry Stogov
f5543a428d
Fixed bug #38287 (static variables mess up global vars)
2006-08-07 15:15:22 +00:00
Derick Rethans
2e55464f80
- There is a 2.3 now as well.
2006-08-04 06:48:20 +00:00
Antony Dovgal
bc8f1bc4f0
make it consistent
2006-08-03 10:57:41 +00:00
Antony Dovgal
c173c26b64
MFH: improve error message
2006-08-03 10:53:15 +00:00
Dmitry Stogov
a98e5c674f
Fixed bug #38234 (Exception in __clone makes memory leak)
2006-07-27 10:44:03 +00:00
Dmitry Stogov
ee97ffd887
Fixed bug #38047 ("file" and "line" sometimes not set in backtrace from inside error handler)
2006-07-27 08:20:38 +00:00
Dmitry Stogov
30f4d3f959
Fixed bug #38220 (Crash on some object operations)
2006-07-26 15:29:27 +00:00
Dmitry Stogov
e447baafa1
Fixed bug #38211 (variable name and cookie name match breaks script execution)
2006-07-26 09:24:26 +00:00
Dmitry Stogov
3688c103b5
Fixed crash of DEBUG version on SPARC CPU because of unaligned pointers.
2006-07-26 08:07:11 +00:00
Dmitry Stogov
356facf4af
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:40:05 +00:00
Derick Rethans
c3e5ee1840
- Fixed typo.
2006-07-25 06:49:38 +00:00
Marcus Boerger
4da92e63af
- MFH Yet another problematic case with mangled properties
2006-07-24 22:36:21 +00:00
Marcus Boerger
519ed8e13b
- Better fix for #34505 and related, drop zend_unmangle_property_name_ex()
2006-07-24 17:58:32 +00:00
Dmitry Stogov
3b7386acea
Fixed memory leaks detection
2006-07-24 08:15:26 +00:00
Dmitry Stogov
a49e04477f
Test for bug #38146 (Cannot use array returned from foo::__get('bar') in write context)
2006-07-24 07:43:49 +00:00
foobar
2b8ad5a0af
MFH:- Fixed bug #38183 (disable_classes=Foobar causes disabled class to be called Foo)
2006-07-22 15:41:42 +00:00
Dmitry Stogov
33a1a4d39a
Changed error message (E_ERROR -> E_NOTICE) in case of indirect modification of overloaded property.
2006-07-21 10:32:17 +00:00
Dmitry Stogov
9a98904ddd
Fixed wrong "type" argument to read_property() handler
2006-07-21 08:39:30 +00:00
Antony Dovgal
926961192f
MFH
2006-07-20 07:30:22 +00:00
foobar
92f080a0a3
Missing file..
2006-07-19 13:45:43 +00:00
Dmitry Stogov
f7c99da2fe
Fixed bug #37144 (PHP crashes trying to assign into property of dead object)
2006-07-19 09:55:19 +00:00
Antony Dovgal
ca7875ab83
fetch tsrm_ls, don't use it uninitialized
2006-07-19 06:32:52 +00:00
Antony Dovgal
c204ff0258
MFH: fix build on platforms without mremap()
2006-07-18 15:41:58 +00:00
Dmitry Stogov
29ed52ffa4
New memory manager
2006-07-18 09:06:33 +00:00
Antony Dovgal
7f9a43653c
fix logic
2006-07-18 09:00:10 +00:00
Antony Dovgal
7a089a43af
MFH: fix DVAL_TO_LVAL() on AIX with old gcc
2006-07-18 08:17:28 +00:00
Antony Dovgal
a9469060e5
MFH: init variables and get rid of annoying warnings
2006-07-12 21:17:30 +00:00
Antony Dovgal
9d57621235
MFH: initialize EG(exit_status) in ZTS mode
2006-07-12 18:10:56 +00:00
Dmitry Stogov
8bb047ee97
Fixed bug #36759 (Objects destructors are invoked in wrong order when script is finished).
2006-07-12 07:54:00 +00:00
Antony Dovgal
3aaf62d159
there is no Unicode in 5_2
2006-07-11 12:15:11 +00:00
Dmitry Stogov
631a00a0a0
Fixed memory leak in case of exception in iterator callbacks in 'foreach(new Iterator()...' (spl/tests/iterator_047.phpt).
2006-07-11 08:52:28 +00:00
Marcus Boerger
704eced26b
- MFH Fixed Bug #37667 (Object is not added into array returned by __get)
2006-07-10 00:36:28 +00:00
Marcus Boerger
dd5cbcd24c
- Fixed Bug #37811 define not using toString on objects
2006-07-09 22:45:11 +00:00
Marcus Boerger
c514ee0c9b
- MFH Fix issue with comparing objects with objects
2006-07-09 18:03:42 +00:00
Marcus Boerger
e9be807267
- MFH Add new test
2006-07-09 17:04:27 +00:00
Marcus Boerger
fa57959f47
- MFH:
...
. Fix comparision edgecases involving objects (Tony, Marcus)
. Use ZVAL_LONG() where appropriate
2006-07-09 16:58:05 +00:00
Marcus Boerger
d5811fc08a
- MFH Fix test
2006-07-09 16:56:22 +00:00
Antony Dovgal
91f9af4360
add test
2006-07-06 16:14:56 +00:00
Sara Golemon
86bbbbdce4
MFH (def.h rev:1.121, execute.h rev:1.120)
...
Silence FETCH_OBJ_IS / undefined notices
2006-07-06 15:32:07 +00:00
Antony Dovgal
058b529ae7
oops.. fix copy/paste typo
2006-07-05 11:54:08 +00:00
Antony Dovgal
c4c96c042e
MFH: export zend_std_get_constructor()
2006-07-05 11:41:25 +00:00
Antony Dovgal
859ab9a4cf
MFH: improve error messages
2006-07-05 11:39:00 +00:00
Antony Dovgal
41ada4ba9b
add new tests
2006-06-27 21:10:04 +00:00
Antony Dovgal
badf27fb2a
MFH: no need to throw E_ERROR here
2006-06-27 19:58:43 +00:00
Antony Dovgal
1757bf8822
fix typo
2006-06-22 21:24:23 +00:00
Antony Dovgal
5ffbb85103
MFH: init variables
2006-06-20 13:28:11 +00:00
Antony Dovgal
8df36aaf32
fix test
2006-06-20 13:06:50 +00:00
Antony Dovgal
c458d1347b
fix tests
2006-06-19 17:33:44 +00:00
Dmitry Stogov
ada4e506a7
MFH: Added automatic module globals management.
2006-06-15 14:03:21 +00:00
Marcus Boerger
9660548a22
- MFH Arginfo fix (Hannes)
2006-06-13 20:57:35 +00:00
Stefan Esser
7bbf35320d
MFH: Added hook for compile_string()
2006-06-13 12:57:48 +00:00
Ilia Alshanetsky
f1fb77d1aa
Make zend_print_zval_r_ex() use the write callback function.
2006-06-11 16:28:24 +00:00
Dmitry Stogov
2a7d16f8fd
Proper fix for bug #37707 ("clone $x" must call __clone() enven if result value is not used)
2006-06-08 08:56:27 +00:00
Dmitry Stogov
6e24feb80d
Wrap "wrong" unreachable code with "#if 0"
2006-06-08 08:37:51 +00:00
Ilia Alshanetsky
8d4bb9ca74
Fixed bug #37707 clone without assigning leaks memory
...
# Based on a patch by Nuno
2006-06-07 13:41:49 +00:00
Marcus Boerger
64c353ab79
- MFH zend_fcall_info_*() and parameter parsing option 'f'
...
# Right now i see this as the best option but we might shuffle code around
# later if someone comes up with a better solution.
2006-06-07 09:43:54 +00:00
Marcus Boerger
de39078f7b
- Regenerated after zend_vm_def.h change
2006-06-07 09:22:08 +00:00
Marcus Boerger
5cdefd07cd
- MFH Fix issue with interfaces being inherited multiple times
2006-06-07 09:21:06 +00:00
Antony Dovgal
f6a400bd9f
revert by Andi's request
2006-06-06 14:17:21 +00:00
Antony Dovgal
e8d568ea8d
fix test
2006-06-06 11:33:59 +00:00
Antony Dovgal
8204511d71
MFH: do not allow to implement the same interface twice
...
add tests
2006-06-06 10:03:01 +00:00
Zeev Suraski
51d495850a
Restore ZE1 compatibility mode (Zend Engine part - the modules patches
...
will follow later today)
2006-06-05 13:58:52 +00:00
Stanislav Malyshev
0c518a03a9
fix .dsp build
2006-06-04 18:03:25 +00:00