Commit Graph

500 Commits

Author SHA1 Message Date
Dmitry Stogov
0c75772f68 Additional fix for bug #42868 2007-12-24 18:10:20 +00:00
Johannes Schlüter
e40c4fc243 - Fix #43450 (Memory leak on some functions with implicit object
__toString() call) (Davic C.)
2007-12-21 20:56:10 +00:00
Robert Nicholson
7eecbc021a New test - Indexing - various special cases 2007-12-20 11:42:23 +00:00
Antony Dovgal
63c9380328 add new tests written by Felipe Pena 2007-12-13 13:51:02 +00:00
Dmitry Stogov
d47c88feb2 Allowed multiple namespaces per file (Gregory) 2007-12-13 08:58:28 +00:00
Dmitry Stogov
31f6f1583e Fixed bug #43344 (Wrong error message for undefined namespace constant) 2007-12-07 17:12:22 +00:00
Dmitry Stogov
4de1707062 Fixed bug #43332 (self and parent as type hint in namespace) 2007-12-03 14:15:55 +00:00
Marcus Boerger
fa51d6497e # My editor somehow likes to convert to UTF-8 2007-11-23 13:27:18 +00:00
Marcus Boerger
46b8084748 - Add another LSB test 2007-11-23 13:25:35 +00:00
Dmitry Stogov
47dc82ecb9 Fixed bug #43128 (Very long class name causes segfault) 2007-11-22 13:33:53 +00:00
Dmitry Stogov
975a66da79 Fixed bug #43318
The "const" statement is still allowed outside of namespaces but arrays are disabled.
2007-11-22 10:46:44 +00:00
Johannes Schlüter
c1c404efc0 - Improve test 2007-11-21 09:38:32 +00:00
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