Commit Graph

5226 Commits

Author SHA1 Message Date
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