Commit Graph

701 Commits

Author SHA1 Message Date
Dmitry Stogov
cc91da1bd7 Fixed bug #47664 (get_class returns NULL instead of FALSE) 2009-03-16 09:51:32 +00:00
Felipe Pena
1c3b44b320 - MFH: Fixed bug #47593 (interface_exists() returns false when using absolute namespace path)
patch by Kalle
- BFN #47572
2009-03-08 17:28:39 +00:00
Felipe Pena
c43b935b65 - MFH: Fixed bug #47572 (zval_update_constant_ex: Segmentation fault) 2009-03-05 16:25:43 +00:00
Dmitry Stogov
db63e29ab3 Fixed bug #47343 (gc_collect_cycles causes a segfault when called within a destructor in one case) 2009-02-18 12:02:53 +00:00
Zoe Slattery
d980c018d4 fix test 2009-02-17 20:23:45 +00:00
Antony Dovgal
76398ae804 add test 2009-02-11 10:02:11 +00:00
Dmitry Stogov
c277ebc6c8 Fixed bug #47320 ($php_errormsg out of scope in functions) 2009-02-09 09:20:35 +00:00
Dmitry Stogov
c13177f182 Better fix for #47341 2009-02-09 08:55:23 +00:00
Derick Rethans
2a1ff72729 - MFH: Fixed bug #47341: Calling gc_collect_cycles() with zend.enable_gc=0
causes segfault.
2009-02-08 19:36:33 +00:00
Christian Seiler
c6d89bd4a8 [DOC] Remove $this support in closures for PHP 5.3 beta 1
- Implementation notes here:
  http://wiki.php.net/rfc/closures/removal-of-this
2009-01-26 22:54:34 +00:00
Dmitry Stogov
666bf10d1a Removed wrong warning message 2009-01-20 13:21:52 +00:00
Dmitry Stogov
d1958eeea8 Fixed bug #47165 (Possible memory corruption when passing return value by reference) 2009-01-20 11:22:45 +00:00
Dmitry Stogov
8075f2e4b7 Fixed bug #47109 (Memory leak on $a->{"a"."b"} when $a is not an object) 2009-01-15 08:48:58 +00:00
Dmitry Stogov
312176f083 Reverted "Rebind closure when binding to property" 2009-01-14 10:28:22 +00:00
Felipe Pena
5c654e617f - Fixed test 2009-01-13 20:15:59 +00:00
Andrei Zmievski
440c8c9cb1 Add test 2009-01-13 18:08:25 +00:00
Stanislav Malyshev
e2ad4e0178 fix #46304: Defining namespaced constant using define() uses case sensitive match for namespace 2009-01-12 21:54:37 +00:00
Felipe Pena
23f7fa57fe - MFH: Fixed bug #47054 (BC break in static functions called as dynamic) 2009-01-10 19:15:42 +00:00
Felipe Pena
06aa1da0cd - MFH: Fixed test (patch by Timm Friebe [thekid@php]) 2009-01-10 17:07:09 +00:00
Andrei Zmievski
93adc26ed7 Add test for last commit. 2009-01-07 22:35:51 +00:00
Felipe Pena
f8689552a4 MFH:
- Fixed bug #46701 (Creating associative array with long values in the key fails on 32bit linux)
Patch by Shire
2009-01-05 20:31:54 +00:00
Marcus Boerger
8e741674af - MFH - Set scope when copying a closure with a new this pointer. 2009-01-04 14:23:29 +00:00
Marcus Boerger
4651b7f635 - MFH Overlooked one instance number 2009-01-03 18:50:56 +00:00
Marcus Boerger
b7bb8034b5 - MFH Fix refcounting 2009-01-03 18:22:20 +00:00
Marcus Boerger
0e131653c1 - MFH Rebind closure when binding to property 2009-01-03 17:48:40 +00:00
Marcus Boerger
480fccce37 - MFH Add var_dump support for closures 2009-01-01 16:22:44 +00:00
Zoe Slattery
455b551314 removing xfail sections as test passes 2008-12-31 20:45:04 +00:00
Zoe Slattery
380214bedb removing xfail sections as test passes 2008-12-31 20:21:00 +00:00
Johannes Schlüter
e23b2b3fa5 MFH (Use the same test fiel as in HEAD) 2008-12-13 22:23:29 +00:00
Antony Dovgal
f090e83eaf fix test 2008-12-12 12:14:00 +00:00
Antony Dovgal
4df574285a MFH 2008-12-11 10:58:56 +00:00
Johannes Schlüter
d828b8acc0 MFH: Fix #46813 (class_exists doesn`t work with fully qualified namespace) 2008-12-09 19:17:11 +00:00
Hannes Magnusson
a2f63f583b Fixed bug#46811 ini_set() doesn't return false on failure 2008-12-09 10:11:21 +00:00
Christian Seiler
04c528609a - MFH: Changed floating point behaviour to consistently use double precision
on all platforms and with all compilers.
2008-12-02 16:19:10 +00:00
Dmitry Stogov
7d4fd3fd38 Fixed bug #46409 (__invoke method called outside of object context when using array_map) 2008-11-27 19:01:23 +00:00
Felipe Pena
1f89cd329f - New test 2008-11-26 10:17:01 +00:00
Dmitry Stogov
ea45b713c8 Added support for namespaces with brackets. (Greg) 2008-11-25 09:56:32 +00:00
Arnaud Le Blanc
a23d168531 MFH: Fixed bug #46649 (Setting array element with that same array produces
inconsistent results)
2008-11-23 20:35:16 +00:00
Etienne Kneuss
3919b16f04 MFH: Fix #46241 (stacked error_handlers, error_handling in general) 2008-11-19 02:00:53 +00:00
Stanislav Malyshev
4cb8b8ba40 Improve use syntax
[DOC] use \foo\bar is the same as use foo\bar
2008-11-17 18:00:44 +00:00
Stanislav Malyshev
1b4134c07b Namespace resolution streamlining patch
[DOC] new resolution rules should be documented soon
2008-11-11 19:45:29 +00:00
Stanislav Malyshev
caa133b3d3 some new tests 2008-11-11 19:44:16 +00:00
Felipe Pena
9b894e6e62 - Fixed bug #46546 (Segmentation fault when using declare statement with non-string value)
# This issue only happens in this branch
2008-11-11 16:15:53 +00:00
Felipe Pena
4680f6ab3d - Fixed tests (thanks Timm) 2008-11-10 15:07:26 +00:00
Felipe Pena
7368bfce56 - New tests 2008-11-10 11:39:57 +00:00
Felipe Pena
358ecee529 - Fixed tests 2008-11-04 17:50:30 +00:00
Marcus Boerger
7126de4912 - Next step in namespaces, using / as namespace separator. 2008-11-04 15:58:55 +00:00
Marcus Boerger
4f04fdc735 - MFH Fix test 2008-11-04 11:12:23 +00:00
Johannes Schlüter
850f9567b8 MFH: Use a better function name for closure related errors and debug_backtrace() 2008-11-03 19:28:32 +00:00
Felix De Vliegher
d90dfe7dbf MFH: XFAIL test for bug #46196 on restore_error_handler(). 2008-11-02 20:15:46 +00:00
Antony Dovgal
73f81e9df6 add test 2008-10-24 20:17:01 +00:00
Dmitry Stogov
41ad9b4d1f Fixed bug #46308 (Invalid write when changing property from inside getter) 2008-10-17 10:26:07 +00:00
Dmitry Stogov
3c5ff0f8f4 Fixed bug #46246 (difference between call_user_func(array($this, $method)) and $this->$method()) 2008-10-10 15:19:35 +00:00
Felipe Pena
e68106988a - MFH: Fixed bug #46238 (Segmentation fault on static call with empty string method) 2008-10-06 00:40:02 +00:00
Dmitry Stogov
e46d328934 Fixed bug #46106 (Memory leaks when using global statement) 2008-09-17 15:11:28 +00:00
Dmitry Stogov
df9b7a1fe0 Fixed possible crash because of overriden error handler 2008-09-17 13:08:54 +00:00
Dmitry Stogov
1474d9dfad Fixed bug #43053 (Regression: some numbers shown in scientific notation). (int-e at gmx dot de)
some 64bit test files may need to be fixed
2008-09-15 11:47:16 +00:00
Felipe Pena
1152c18e2a - New test 2008-08-25 19:55:54 +00:00
Felipe Pena
77e7f1c191 - New tests 2008-08-25 19:36:01 +00:00
Felipe Pena
611ef9534f - New tests 2008-08-22 13:40:09 +00:00
Felipe Pena
317b48f3af MFH:
- Fixed bug #45862 (get_class_vars is inconsistent with 'protected' and 'private' variables)
- Added some tests
2008-08-22 00:59:39 +00:00
Felipe Pena
e597dde580 - New tests 2008-08-18 17:46:54 +00:00
Felipe Pena
9c787d8c97 - MFH: Fixed bug #45743 (property_exists fails to find static protected member in child class) 2008-08-18 17:44:02 +00:00
Jani Taskinen
a3e7c1a318 MFH 2008-08-14 22:51:31 +00:00
Jani Taskinen
f8c748af56 fix test 2008-08-14 20:51:55 +00:00
Felipe Pena
6b91caeba1 - Fixed test 2008-08-14 19:17:59 +00:00
Felipe Pena
542483cbe4 - New test 2008-08-14 19:14:56 +00:00
Dmitry Stogov
1ff61ab8a4 Fixed bug #45805 (Crach on throwing exception from error handler) 2008-08-13 07:21:30 +00:00
Marcus Boerger
4ff965ee6c - MFH Add new test 2008-08-12 11:52:16 +00:00
Marcus Boerger
d8530cc8a9 - MFH Add new test 2008-08-12 11:24:24 +00:00
Dmitry Stogov
a4a3ed44bb - Made closures implementation reflection friendly (Christian)
- Changed E_ERROR(s) into E_RECOVERABLE_ERROR(s) (Marcus)
2008-08-11 08:49:00 +00:00
Antony Dovgal
18547585bf new test 2008-08-10 21:24:08 +00:00
Felipe Pena
5f68027d58 - Fixed tests (Pierre) 2008-08-10 00:35:40 +00:00
Dmitry Stogov
43f278ccaf Fixed bug #45744 (Case sensitive callback behaviour) 2008-08-07 12:04:14 +00:00
Dmitry Stogov
c1e5b1345d Fixed bug #45742 (Wrong class array inpretetion using constant indexes) 2008-08-07 11:45:35 +00:00
Dmitry Stogov
37a769353f Fixed bug #44100 (Inconsistent handling of static array declarations with duplicate keys). 2008-08-01 14:22:03 +00:00
Dmitry Stogov
f02f9b0545 Removed Closure::__toString() 2008-07-31 07:10:33 +00:00
Felipe Pena
0afc07b26a - New test 2008-07-30 12:14:30 +00:00
Dmitry Stogov
44caafc62e Fixed constant substitution (Matt) 2008-07-28 14:12:19 +00:00
Felipe Pena
e062594215 - MFH: New tests 2008-07-28 14:10:00 +00:00
Dmitry Stogov
f5f8cba8e9 Fixed bug #44660 (Indexed and reference assignment to propery of non-object don't trigger warning) 2008-07-26 17:59:54 +00:00
Dmitry Stogov
478acfd8b4 . Added support for using static HEREDOCs to initialize static variables and class members or constants. (Matt)
. Improved syntax highlighting and consistency for variables in double-quoted strings and literal text in HEREDOCs and backticks. (Matt)
. Optimized interpolated strings to use one less opcode. (Matt)
2008-07-26 15:30:28 +00:00
Dmitry Stogov
8b14236557 Fixed bug #45608 (closures don't work in static methods) 2008-07-26 14:15:19 +00:00
Dmitry Stogov
af05ce0af6 Fixed is_callable/call_user_func mess that had done different things for very similar arguments e.g. array("A","B") and "A::B" 2008-07-26 13:14:04 +00:00
Dmitry Stogov
44325e6473 Fixed bug #45178 (memory corruption on assignment result of "new" by reference) 2008-07-24 11:47:51 +00:00
Dmitry Stogov
feb8580166 LSB parent/self forwarding 2008-07-24 09:42:18 +00:00
Dmitry Stogov
4d8bdd9d1b Closure object cannot have properties 2008-07-22 07:29:31 +00:00
Derick Rethans
05d2ae4c9e - This test works fine (patch by Lars Strojny) 2008-07-22 07:13:52 +00:00
Hannes Magnusson
ee40f557a7 Fix tests (patch by Lars) 2008-07-21 12:23:38 +00:00
Hannes Magnusson
d619b57efa MFH: Add E_USER_DEPRECATED (patch by Lars Strojny) 2008-07-21 09:41:00 +00:00
Felipe Pena
c3453925c5 - Deprecate ticks 2008-07-17 19:29:34 +00:00
Felipe Pena
a142b6cd86 - New tests 2008-07-14 13:36:40 +00:00
Dmitry Stogov
0fa7fedfde Fixed is_callable() to support closures and return appropriate function name 2008-07-14 12:18:23 +00:00
Felipe Pena
bc12bc69aa - Fixed test titles 2008-07-14 11:57:44 +00:00
Dmitry Stogov
d5ef2f466c Added support for lambda functions and closures 2008-07-14 09:49:03 +00:00
Marcus Boerger
2bf3bfc746 - MFH Exception handling
[DOC]
- Exceptions can be thrown while exceptions are pending, they are linked
- Exceptions can be handled in __destruct
- Add optional Exception $previous parameter to
  . Exception::__construct
  . ErrorException::__construct
2008-07-13 21:42:49 +00:00
Antony Dovgal
669a441bcd fix test 2008-07-13 09:29:16 +00:00
Antony Dovgal
cf0708dc88 remove UEXPECTF section 2008-07-09 11:14:20 +00:00
Dmitry Stogov
f7f74367df Fixed bug #45434 (circular reference causes segfault in gc_collect_cycles()) 2008-07-08 08:16:09 +00:00
Rui Hirokawa
0686ad4313 improved zend-multibyte detection. 2008-07-06 15:36:19 +00:00
Rui Hirokawa
07ce850026 added test script for zend-multibyte
(moved/modified from ext/mbstring/tests/)
2008-07-06 02:01:39 +00:00
Felipe Pena
d2faad9820 - Fixed test 2008-06-25 22:54:11 +00:00
Dmitry Stogov
298087c74b Allowed to override internal classaes with "use" 2008-06-20 17:17:05 +00:00
Stanislav Malyshev
58a673a909 Use new parameter parsing API for builtin functions 2008-06-18 23:38:37 +00:00
Felipe Pena
cda2b20ae9 - New test 2008-06-11 22:40:13 +00:00
Felipe Pena
dc697bcea4 - Change E_COMPILE_ERROR to E_WARNING (for wrong visibility on magic methods) 2008-06-10 23:09:09 +00:00
Stanislav Malyshev
4f522eb576 allow aggregating use statements 2008-06-08 09:38:47 +00:00
Felipe Pena
7ba0803964 - New tests 2008-06-05 18:33:00 +00:00
Felipe Pena
a1bbc5698c - New test 2008-06-04 18:32:56 +00:00
Felipe Pena
cc23d3bade - Fixed bug #45089 (__callStatic $name case sensitivity) 2008-06-03 18:11:12 +00:00
Felipe Pena
44b91c8b61 - Removed unnecessary XFAIL section 2008-06-03 17:10:21 +00:00
Felipe Pena
426a4cc2e6 - Fixed tests 2008-06-03 15:34:47 +00:00
Felipe Pena
6ff90104aa - New tests 2008-06-03 15:30:04 +00:00
Felipe Pena
402fb5285d - MFH: Fixed bug #44769 (declaring private magic methods should throw error) 2008-06-03 14:07:15 +00:00
Matt Wilmas
fc6fa44097 Fixed tests on Windows 2008-05-29 07:32:03 +00:00
Felipe Pena
125e897348 - Added XFAIL section in tests to issue under discussion 2008-05-28 11:54:36 +00:00
Antony Dovgal
ba4a9de042 fix tests (say hello to disk C:\) 2008-05-20 14:53:58 +00:00
Antony Dovgal
b3b5126954 fix test names 2008-05-14 13:04:05 +00:00
Felipe Pena
e35c457913 - New tests 2008-05-12 17:57:21 +00:00
Felipe Pena
d9d47f3718 - New tests 2008-05-12 14:58:31 +00:00
Felipe Pena
5c2ff40433 - MFH: New tests 2008-05-12 13:31:36 +00:00
Felipe Pena
c5e80819ba - Fixed test 2008-05-12 11:15:32 +00:00
Felipe Pena
f6c57d1f6f - MFH: New tests 2008-05-11 22:44:56 +00:00
Felipe Pena
e4c7664158 - MFH: New tests 2008-05-11 03:50:28 +00:00
Felipe Pena
bcccfa6bf1 - New tests 2008-05-09 14:16:24 +00:00
Matt Wilmas
29cbfbd1e7 MFH: Test for loss of backslash at end of heredoc; For bug #44830 (Very minor issue with backslash in heredoc) 2008-05-09 11:06:29 +00:00
Felipe Pena
1e650ca32d - MFH: Fixed detection of invalid class name 2008-05-08 18:51:28 +00:00
Felipe Pena
fd4e87c5d4 - New tests 2008-05-07 14:10:03 +00:00
Dmitry Stogov
1b317f1526 - Use ZEND_FREE() opcode instead of ZEND_SWITCH_FREE(IS_TMP_VAR)
- Fixed bug #44913 (Segfault when using return in combination with nested loops
and continue 2)
2008-05-05 11:03:35 +00:00
Dmitry Stogov
5a0253c14c Support for old-style constructors in namespaces 2008-05-05 09:44:39 +00:00
Felipe Pena
a578b0cbcc - MFH: Fixed bug #44899 (__isset usage changes behavior of empty()) (patch by Etienne Kneuss) 2008-05-03 00:38:55 +00:00
Felipe Pena
3d2a5940a2 - New tests 2008-04-18 14:05:47 +00:00
Felipe Pena
8f2c31a171 - New test 2008-04-17 18:16:17 +00:00
Ilia Alshanetsky
4534cd6807 WS 2008-04-09 23:35:19 +00:00
Dmitry Stogov
dfacfae34a Bug #44653 (Invalid namespace name resolution) 2008-04-09 08:55:45 +00:00
Marcus Boerger
8f670912a3 - MFH add new tests 2008-04-06 17:53:31 +00:00
Felipe Pena
b9d13d8f17 - Allow HEREDOC syntax with double quotes
(http://wiki.php.net/rfc/heredoc-with-double-quotes)
2008-04-05 22:29:08 +00:00
Felipe Pena
f66f55edc5 MFH: Implemented "jump label" operator (limited "goto")
[DOC]
2008-03-28 14:35:01 +00:00
Marcus Boerger
3a74a6bec4 - MFH Add tests 2008-03-23 13:38:41 +00:00
Antony Dovgal
40a7a6005b remove ze1_compat tests 2008-03-18 14:50:14 +00:00
Felipe Pena
2b10c53ae1 MFH: Dropped zend.ze1_compatibility_mode
[DOC]
2008-03-18 14:10:45 +00:00
Antony Dovgal
7dd943ac5c MFH: fix #39127 (Old-style constructor fallbacks produce strange results) 2008-03-17 14:54:42 +00:00
Scott MacVicar
e6960e3ded Fix test 2008-03-17 10:29:17 +00:00
Marcus Boerger
af316021e8 - Rewrite scanner to be based on re2c instead of flex
The full patch is available as:
  http://php.net/~helly/php-re2c-5.3-20080316.diff.txt
  This is against php-re2c repository version 98
  An older patch against version 97 is available under:
  http://php.net/~helly/php-re2c-97-20080316.diff.txt
2008-03-16 21:06:55 +00:00
Dmitry Stogov
7158425387 Improve GC to support garbage created in destructors during objects utilization 2008-03-14 18:36:34 +00:00
Dmitry Stogov
e1a28ee945 Fixed GC bug 2008-03-14 13:21:04 +00:00
Dmitry Stogov
a564b2a939 Fixed test 2008-03-12 15:20:23 +00:00
Felipe Pena
ae0a15b7cf New test 2008-03-12 13:31:38 +00:00
Felipe Pena
5fa8f63a01 New tests 2008-03-12 12:58:12 +00:00
Dmitry Stogov
0f2247ae94 Fixed bug #44414 (Incomplete reporting about abstract methods) 2008-03-12 09:46:42 +00:00