Commit Graph

538 Commits

Author SHA1 Message Date
Johannes Schlüter
0f9d8bc066 - Add test 2007-11-20 23:56:45 +00:00
Dmitry Stogov
2a84434ea3 Added support for "namespace::" prefix that is resolved to current namespace name. 2007-11-20 08:53:17 +00:00
Dmitry Stogov
0ab5a2c203 Fixed tests 2007-11-19 08:21:58 +00:00
Antony Dovgal
9c7296f165 disallow multiple access modifiers and 'abstract abstract' methods
add tests
2007-11-13 16:51:22 +00:00
Dmitry Stogov
b6963efdda better error messages 2007-11-12 17:53:36 +00:00
Antony Dovgal
0c07db4420 fix error message (reported by Felipe Nascimento) 2007-11-12 16:55:28 +00:00
Dmitry Stogov
c74918f5d5 Fixed bug #43183 ("use" of the same class in difference scripts results in a fatal error) 2007-11-12 15:52:11 +00:00
Dmitry Stogov
0dd6af6afd Fixed bug #42937 (__call() method not invoked when methods are called on parent from child class). 2007-11-12 09:12:20 +00:00
Johannes Schlüter
a8e26830fe - static can't be used as type hint, fixes #43126 (Etienne Kneuss) 2007-11-11 22:10:57 +00:00
Dmitry Stogov
cdbeea7e2e Fixed type-hint compatibility check in namespaces 2007-11-09 13:35:22 +00:00
Dmitry Stogov
aea2368bda Fixed implementation of internal interfaces in namespaces 2007-11-09 12:16:55 +00:00
Dmitry Stogov
c882ba8e69 Fixed bug #43175 (__destruct() throwing an exception with __call() causes segfault) 2007-11-06 14:56:32 +00:00
Dmitry Stogov
d945aea891 Fixed bug #43201 (Crash on using unitialized vals and __get/__set) 2007-11-06 14:12:14 +00:00
Dmitry Stogov
e860d95d24 T_IMPORT -> T_USE 2007-11-06 07:29:41 +00:00
Jani Taskinen
9cc90f23b3 ws + cs + fix test 2007-11-02 00:15:13 +00:00
Dmitry Stogov
a069a415e5 Fixed bug #43027 (Declare cause fatal error) 2007-11-01 11:59:15 +00:00
Dmitry Stogov
a53eb396b3 Fixed variations of bug #35163 2007-10-23 12:52:51 +00:00
Dmitry Stogov
d892fd3da4 Fixed bug #35163 (Array elements can lose references) 2007-10-23 09:55:25 +00:00
Dmitry Stogov
8cae2e56e4 Fixed bug #42859 (import always conflicts with internal classes). (cellog@php.net, Dmitry) 2007-10-17 10:01:37 +00:00
Hannes Magnusson
165c695f44 Add skipif 2007-10-13 11:36:59 +00:00
Ilia Alshanetsky
42ec1edea4 MFB: Fixed bug #42817 (clone() on a non-object does not result in a fatal
error)
2007-10-04 23:25:53 +00:00
Dmitry Stogov
ce5c38af25 Fixed bug #42820 (defined() on constant with namespace prefixes tries to load class). 2007-10-03 10:33:45 +00:00
Dmitry Stogov
daf1121292 Fixed bug #42818 ($foo = clone(array()); leaks memory) 2007-10-03 09:47:59 +00:00
Dmitry Stogov
ca4c533843 Fixed bug #42772 (Storing $this in a static var fails while handling a cast to string) 2007-10-03 08:02:57 +00:00
Dmitry Stogov
19d7fed62d Fixed bug #42819 (namespaces in indexes of constant arrays) 2007-10-02 08:27:19 +00:00
Dmitry Stogov
8d8d86eb7a Fixed bug #42802 (Namespace not supported in typehints) 2007-10-01 10:37:36 +00:00
Dmitry Stogov
f30167922a Fixed bug #42798 (__autoload() not triggered for classes used in method signature). 2007-10-01 09:33:02 +00:00
Ilia Alshanetsky
43f492c872 MFB: Fixed bug #42767 (highlight_string() truncates trailing comment). 2007-09-26 15:46:28 +00:00
Dmitry Stogov
189ac4f201 Late Static Binding (Dmitry, Etienne Kneuss) 2007-09-26 07:16:33 +00:00
Antony Dovgal
9af6ca011e fix test names 2007-09-19 11:25:22 +00:00
Antony Dovgal
e8a72ac5e1 prohibit arguments by ref in magic methods 2007-08-31 12:36:00 +00:00
Antony Dovgal
4525473c9d fix tests 2007-08-25 16:02:11 +00:00
Dmitry Stogov
611abb17fc Namespace constants 2007-08-24 13:50:52 +00:00
Dmitry Stogov
1322b1a30a Fixed bug #42009 (is_a() and is_subclass_of() should NOT call autoload, in the same way as "instanceof" operator). 2007-08-22 13:20:09 +00:00
Dmitry Stogov
046b878b5b Fixed name resolution
namespace A;
    B::foo(); // 1. this is function "foo" from namespace "B"
              // 2. this is static method "foo" of class "B" from namespace "A"
              // 3. this is static methos "boo" of internal class "B"
  namespace A;
    A::foo(); // 1. this is function "foo" from namespace "A"
              // 2. this is static method "foo" of class "A" from namespace "A"
              // 3. this is static methos "foo" of internal class "A"
2007-08-22 07:39:37 +00:00
Dmitry Stogov
11e267f619 typo 2007-08-22 06:33:25 +00:00
Dmitry Stogov
ad8aa49f06 Fixed bug #42211 (property_exists() fails to find protected properties from a parent class) 2007-08-08 13:32:58 +00:00
Antony Dovgal
b6c96790ba MFB: adjust the test names a bit 2007-08-03 13:51:11 +00:00
Johannes Schlüter
0122a6fede - Respect value of the parameter for get_loaded_extensions() and
get_defined_cosntants()
2007-08-02 16:52:59 +00:00
Dmitry Stogov
d4af6ba6bf Fixed namespace name and internal class name ambiguity 2007-08-01 11:44:25 +00:00
Johannes Schlüter
c883e25485 - Add additional param to get_loaded_extensions() for returning Zend
extensions (Fixes #41278)
2007-07-31 22:45:08 +00:00
Dmitry Stogov
b5ccc03fc2 Improved fix for bug #41633 (self:: doesn't work for constants) to support function define() 2007-07-27 16:29:25 +00:00
Dmitry Stogov
addd8f592d Extended tests 2007-07-27 14:53:23 +00:00
Dmitry Stogov
c04dc1699b Namespace support for name ambiguity between namespace and class name 2007-07-27 13:41:36 +00:00
Dmitry Stogov
9703e90904 Support for namespaces in compile-time constant reference 2007-07-27 09:04:12 +00:00
Dmitry Stogov
995c130320 Added warning for useless import statement 2007-07-26 08:57:52 +00:00
Dmitry Stogov
c4b5d9e572 Disabling declaration of class which name conflicts with import. 2007-07-26 08:32:52 +00:00
Dmitry Stogov
d0ec9d001c 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:56 +00:00
Dmitry Stogov
215edd7a4a 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:53 +00:00
Dmitry Stogov
92d3bc0c93 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:40:07 +00:00
Sara Golemon
b1bc911cee Add support got zend_class_entry->get_static_method() and matching __callStatic() userspace method @doc 2007-07-21 05:27:07 +00:00
Antony Dovgal
4836ea7c50 fix test 2007-07-19 09:34:19 +00:00
Dmitry Stogov
7e8a11f636 Fixed test 2007-07-14 08:51:54 +00:00
Antony Dovgal
d9d3c3ca08 fix tests 2007-07-13 15:42:31 +00:00
Dmitry Stogov
68845c6a83 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:26 +00:00
Antony Dovgal
53c34ffb40 add new test 2007-07-12 09:29:50 +00:00
Dmitry Stogov
1f413bbc37 Namespaces 2007-07-12 09:23:48 +00:00
Zoe Slattery
3cf3ad9c03 array copy on write tests 2007-07-09 13:18:03 +00:00
Dmitry Stogov
2d39376219 Fixed bug #41919 2007-07-09 08:56:29 +00:00
Stanislav Malyshev
2ab4eededb MF5 __HALT_COMPILER fix:
Remove limitation of __HALT_COMPILER() that allowed only one instance
per request.

# Patch by Gregory Beaver
2007-06-28 00:01:58 +00:00
Antony Dovgal
a2945fdd40 fix test 2007-06-27 17:04:57 +00:00
Zoe Slattery
6851bedd28 Tests for constant initialisation 2007-06-27 15:01:36 +00:00
Dmitry Stogov
06320d3f50 Fixed bitwise operations with numeric unicode strings 2007-06-27 11:04:50 +00:00
Dmitry Stogov
eae255addf Implemented ++ and -- operations for unicode strings 2007-06-27 10:27:04 +00:00
Antony Dovgal
0b68e2fb1d add test 2007-06-27 08:54:59 +00:00
Dmitry Stogov
366cf9abf9 Fixed test 2007-06-18 07:38:21 +00:00
Dmitry Stogov
0a7462e056 Fixed bug #41633 (Crash instantiating classes with self-referencing constants) 2007-06-13 16:48:29 +00:00
Dmitry Stogov
b898c98005 Fixed some class constant issues related to bug #41633 2007-06-13 14:50:33 +00:00
Raghubansh Kumar
fd9fd30f2e New testcase for get_defined_vars() function: get_defined_vars.phpt 2007-06-11 16:34:56 +00:00
Johannes Schlüter
eae4b3109e Fix #41640 (get_class_vars produces error on class constants) 2007-06-09 08:36:52 +00:00
Antony Dovgal
f673b558cc change E_NOTICE to E_ERROR when using a class constant from non-existent class
(noticed by Jani)
add tests
2007-06-04 08:24:32 +00:00
Ilia Alshanetsky
e844eaedbb MFB 2007-05-29 21:06:04 +00:00
Antony Dovgal
8cb7c70cc0 fix tests 2007-05-29 11:49:09 +00:00
Antony Dovgal
1be32fbe17 fix test 2007-05-29 08:58:27 +00:00
Stanislav Malyshev
b9734eac07 add test for 41401 2007-05-18 20:26:59 +00:00
Antony Dovgal
c63a3187e5 fix #41421 (Uncaught exception from a stream wrapper segfaults) 2007-05-18 11:51:40 +00:00
Antony Dovgal
d05cf2f650 add test 2007-05-17 17:34:23 +00:00
Antony Dovgal
f72dde13af fix test 2007-05-17 17:11:12 +00:00
Raghubansh Kumar
e3d89c2faa New version of 019.phpt 2007-05-12 12:26:12 +00:00
Antony Dovgal
ca43e24f55 fix #41351 (Invalid opcode with foreach ($a[] as $b)) 2007-05-11 09:38:52 +00:00
Dmitry Stogov
d60a809744 Fixed bug #39542 (Behaviour of require/include different to < 5.2.0) 2007-05-11 08:03:00 +00:00
Antony Dovgal
a8be4e0f43 fix tests 2007-05-07 22:12:56 +00:00
Antony Dovgal
ccd97f3a21 fix test names 2007-05-07 17:23:53 +00:00
Antony Dovgal
8d9be0338b fix test names 2007-05-07 16:50:40 +00:00
Antony Dovgal
7e465587c8 add 64bit version of the tests 2007-05-07 13:59:58 +00:00
Johannes Schlüter
cff001a1c9 - Fix test 2007-05-06 13:55:17 +00:00
Antony Dovgal
180cc9d9c4 fix tests, add more 2007-05-05 21:43:41 +00:00
Antony Dovgal
e8a95a2f7e new tests 2007-05-04 12:45:30 +00:00
Antony Dovgal
fe6fd4ed38 fix disabled classes 2007-05-04 12:17:30 +00:00
Antony Dovgal
07ae8a9b02 fix machine dependent test 2007-05-04 08:27:26 +00:00
Johannes Schlüter
36245e66e1 - Fix skipif 2007-05-03 12:44:35 +00:00
Antony Dovgal
15844a24a4 this test is only valid when Zend MM is enabled 2007-05-02 15:26:59 +00:00
Dmitry Stogov
7228f2307b Fixed altering $this via argument named "this" 2007-05-02 13:22:15 +00:00
Antony Dovgal
bcfd4067b6 make concatenating two binary strings a special case 2007-04-30 15:59:12 +00:00
Antony Dovgal
ddd0dbd4ed add new tests 2007-04-28 11:58:41 +00:00
Antony Dovgal
8c8f7708e9 add new tests 2007-04-27 21:32:40 +00:00
Antony Dovgal
0e5d853a8d initialize retval_ptr_ptr before returning FAILURE
this fixes invalid read in #41209
2007-04-27 08:11:37 +00:00
Antony Dovgal
82e7dc3aeb fix tests 2007-04-26 23:32:30 +00:00
Antony Dovgal
c393a42948 remove highlight.bg 2007-04-26 09:39:30 +00:00
Antony Dovgal
8649923814 new test 2007-04-20 09:17:37 +00:00
Antony Dovgal
788f860a4b this test is for 32bit 2007-04-20 07:55:14 +00:00
Antony Dovgal
66be352817 fix #41118 (PHP does not handle overflow of octal integers)
MFB a small part of optimization patch applied only to 5_2
2007-04-19 11:24:48 +00:00
Antony Dovgal
a63ee1b323 fix & unify double-to-string conversion utils 2007-04-19 09:30:10 +00:00
Antony Dovgal
0c9da15a56 add UEXPECTF 2007-04-13 13:37:55 +00:00
Antony Dovgal
63c1e37f85 new test 2007-04-13 13:37:09 +00:00
Antony Dovgal
8957f06763 MFB 2007-04-11 22:35:25 +00:00
Antony Dovgal
a083ad9257 new test 2007-04-09 07:29:12 +00:00
Dmitry Stogov
a26ddf2573 Fixed bug #40899 (memory leak when nesting list()) 2007-03-23 12:46:38 +00:00
Dmitry Stogov
3e7c4195e3 Improved Zend Memory Manager to guarantee reasonable time for worst cases of best-fit free block searching algorithm. 2007-03-20 06:47:12 +00:00
Dmitry Stogov
6e96aba15b Fixed bug #40833 (Crash when using unset() on an ArrayAccess object retrieved via __get()). 2007-03-19 18:36:49 +00:00
Antony Dovgal
98c6f184b2 new test 2007-03-15 16:43:01 +00:00
Dmitry Stogov
5a4f3bcd37 Fixed bug #40770 (Apache child exits when PHP memory limit reached) 2007-03-12 17:00:07 +00:00
Antony Dovgal
43c8316d2d fix #40784 (Case sensivity in constructor's fallback) 2007-03-12 13:07:39 +00:00
Stanislav Malyshev
6bfcb2bdbd MFB test 2007-03-08 21:05:17 +00:00
Antony Dovgal
37797ff7bf fix tests 2007-03-06 19:25:46 +00:00
Antony Dovgal
09f196f4b6 fix #40621 (Crash when constructor called inappropriately (statically)) 2007-02-24 21:29:22 +00:00
Antony Dovgal
876e8f2dae fix test
stdout is closed in non-debug mode
2007-02-19 12:19:33 +00:00
Dmitry Stogov
cb5ae2b82c Fixed bug #40236 (php -a function allocation eats memory) 2007-02-15 10:42:52 +00:00
Antony Dovgal
c212923e29 new/improved tests 2007-02-13 13:01:18 +00:00
Antony Dovgal
535e38a473 add new tests 2007-02-02 12:53:54 +00:00
Antony Dovgal
afe43f7794 add new tests 2007-02-02 11:10:42 +00:00
Antony Dovgal
ffa0edaee1 fix tests 2007-02-02 10:55:23 +00:00
Antony Dovgal
e196cfe7db fix test
array_unique() is not expected to modify its argument
2007-01-22 08:55:39 +00:00
Antony Dovgal
54cc687609 fix test 2007-01-15 10:31:04 +00:00
Dmitry Stogov
c849a54b02 Fixed bug #35634 (Erroneous "Class declarations may not be nested" error raised). (Carl P. Corliss) 2007-01-11 16:47:46 +00:00
Dmitry Stogov
f6387758c6 - 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:59:56 +00:00
Dmitry Stogov
e88cc26864 Fixed bug #39825 (foreach produces memory error) 2006-12-25 19:23:18 +00:00
Dmitry Stogov
326fcd0261 Fixed bug #39944 (References broken) 2006-12-25 14:16:38 +00:00
Dmitry Stogov
f37ad2e146 Fixed bug #39775 ("Indirect modification ..." message is not shown) 2006-12-08 16:23:04 +00:00
Antony Dovgal
8f98226510 fix tests 2006-12-06 13:11:02 +00:00
Dmitry Stogov
3d5825bb3d Fixed bug #39721 (Runtime inheritance causes data corruption) 2006-12-05 19:04:51 +00:00
Dmitry Stogov
ef3df1e6ff Bug #39438 (Fatal error: Out of memory) 2006-12-01 20:02:00 +00:00
Antony Dovgal
b0f688006d fix test 2006-11-30 13:09:24 +00:00
Dmitry Stogov
6b2f3046e8 Fixed bug #39602 (Invalid session.save_handler crashes PHP) 2006-11-23 08:07:16 +00:00
Antony Dovgal
0052d291fc add test for some of builtin funcs 2006-11-21 11:11:25 +00:00
Dmitry Stogov
cc134cef18 Fixed bug #39445 (Calling debug_backtrace() in the __toString() function produces a crash) 2006-11-15 16:05:26 +00:00
Dmitry Stogov
f8b3df2bf2 Fixed bug #39297 (Memory corryption because of indirect modification of overloaded array). 2006-11-08 13:38:44 +00:00
Ilia Alshanetsky
d5c7a2d9c6 MFB: Fixed bug #33282 (Re-assignment by reference does not clear the is_ref
flag)
2006-11-07 20:28:40 +00:00
Dmitry Stogov
1bf9c4a45d Fixed bug #39304 (Segmentation fault with list unpacking of string offset) 2006-10-30 11:04:47 +00:00
Antony Dovgal
5ce3a350e4 add test for #39036 (reproducible with 5.1.6, but works fine in 5.2 and HEAD) 2006-10-04 13:35:31 +00:00
Dmitry Stogov
ea1cd51094 Fixed bug #39017 (foreach(($obj = new myClass) as $v); echo $obj; segfaults) 2006-10-03 09:05:35 +00:00
Antony Dovgal
36b78b78a4 fix #39003 (__autoload() is called for type hinting) 2006-10-02 11:05:02 +00:00
Antony Dovgal
e6ebe4dab3 new tests 2006-09-28 12:08:44 +00:00
Antony Dovgal
766c159460 add new tests 2006-09-28 11:45:55 +00:00
Dmitry Stogov
798d93c4da Fixed bug #38808 ("maybe ref" issue for current() and others) 2006-09-26 10:31:04 +00:00
Dmitry Stogov
59d0c16391 Fixed bug #38942 (Double old-style-ctor inheritance) 2006-09-26 07:55:54 +00:00
Dmitry Stogov
7aeb4421b7 Fixed bugs #34065 and #38623 (throw in foreach/switch causes memory leaks) 2006-09-19 21:36:00 +00:00
Antony Dovgal
eec02cb1be fix tests 2006-09-13 14:00:44 +00:00
Dmitry Stogov
5574651edb Fixed bug #38772 (inconsistent overriding of methods in different visibility contexts) 2006-09-12 11:01:31 +00:00
Antony Dovgal
50222ced54 fix tests 2006-09-11 14:27:25 +00:00