Commit Graph

5264 Commits

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