Commit Graph

6428 Commits

Author SHA1 Message Date
Dmitry Stogov
653e374b6b Fixed bug #50982 (incorrect assumption of PAGE_SIZE size) 2011-09-15 11:30:17 +00:00
Dmitry Stogov
723d7029d8 Fixed bug #55552 (bad encoding not detected) 2011-09-14 15:00:28 +00:00
Dmitry Stogov
65cb18dd5f Fixed bug #55578 (Segfault on implode/concat) 2011-09-14 13:18:19 +00:00
Derick Rethans
1777d6fa79 - Fixed compiler warnings (patch by Kalle Sommer Nielsen) 2011-09-13 15:17:11 +00:00
Dmitry Stogov
955041e223 Fixed ZE specific compile warnings (Bug #55629) 2011-09-13 13:30:18 +00:00
Dmitry Stogov
e43ff1359e Fixed ZE specific compile warnings (Bug #55629) 2011-09-13 13:29:35 +00:00
Dmitry Stogov
4b1193a9cc Fixed Bug #55649 (Undefined function Bug()). (Laruence) 2011-09-13 07:07:06 +00:00
Dmitry Stogov
b6173bee92 Fixed bug #55509 (segfault on x86_64 using more than 2G memory). (Laruence) 2011-09-13 07:01:46 +00:00
Hannes Magnusson
b16bb9582b Merge missing test from 5_4 2011-09-12 10:13:54 +00:00
Pierre Joye
d566f0c88e - fix build when no zend signal support 2011-09-08 09:17:21 +00:00
Rasmus Lerdorf
ca2234d18c Make timeouts work again for shutdown functions.
Fixes the faling lang/045 test
2011-09-07 18:48:17 +00:00
Hannes Magnusson
4e9a7658b8 Revert r316345 which fixes all the tests again 2011-09-07 13:50:18 +00:00
Pierre Joye
6b4717da8e - reject paths with trainling spaces using the very good new zend arg 2011-09-07 12:33:22 +00:00
Hannes Magnusson
a953f69ed6 Remove bogus skipif and make adjust the tests 2011-09-07 10:44:32 +00:00
Stanislav Malyshev
a447acdcc6 Commit Gustavo's closure rebinding patch as desided by vote 2011-09-07 06:46:27 +00:00
Pierre Joye
4e967d1bb1 - fix skipif 2011-09-06 15:40:12 +00:00
Pierre Joye
710d46f38e - WS 2011-09-06 06:34:36 +00:00
Pierre Joye
7f3ab56cec - WS 2011-09-06 06:32:42 +00:00
Pierre Joye
58a96d5588 - WS 2011-09-06 06:32:00 +00:00
Pierre Joye
40e09c4b7a - parser version independent 2011-08-31 11:18:13 +00:00
Pierre Joye
14866642e1 - parser version independent 2011-08-31 11:16:25 +00:00
Pierre Joye
7f231eade7 - use only the test name 2011-08-31 10:46:20 +00:00
Pierre Joye
54591710f0 - use only the test name 2011-08-31 10:43:39 +00:00
Pierre Joye
f15d9278eb - use only the test name 2011-08-31 10:30:39 +00:00
Pierre Joye
6181baf15a - use only test name 2011-08-31 10:22:18 +00:00
Pierre Joye
fbb1663806 - make it parser version independent 2011-08-31 10:05:54 +00:00
Felipe Pena
cb74745d2f - Fixed ZTS build 2011-08-30 01:33:42 +00:00
Derick Rethans
b0be274324 - Zend engine part for bug #55158: Add SORT_NATURAL type to array_multisort
(patch by Arpad Ray).
2011-08-29 20:24:09 +00:00
Stefan Marr
1f4dfded59 Fixed bug #55524 Traits should not be able to extend a class
# also used the Z_STRVAL where it seemed appropriate
2011-08-29 15:53:46 +00:00
Pierre Joye
9770f6041a - Fix bug #55471, fix zts build with dtrace (Laruense) 2011-08-21 11:51:00 +00:00
Etienne Kneuss
cb8d6198df Fix bug #55445 (Incomplete implementation of <?= being independant of short_open_tag) 2011-08-17 23:50:04 +00:00
Felipe Pena
8db63e8874 - Drop T_SCALAR_CAST 2011-08-16 12:13:35 +00:00
Felipe Pena
35c9c4ed2d - Fixed ZTS build 2011-08-16 12:01:36 +00:00
Hannes Magnusson
b55d116e9a Improve errormessage on wrong use statements 2011-08-16 10:46:49 +00:00
Hannes Magnusson
306c42023e Callable typehint following the rules of is_callable($arg, false); 2011-08-16 10:44:47 +00:00
Stefan Marr
466d5414df Bug #55424 Fatal error when calling a method from a trait that is defined in parent class and required by using an abstract method in the trait.
# The method got unconditionally deleted from the class, since it was assumed that we override it, but we did not in case of abstract methods coming from a trait. Thus, dont delete when we try to merge in an abstract method.
2011-08-15 22:16:58 +00:00
Stefan Marr
f4d3d6c439 Fixed Bug #55355: Inheritance chain was not regarded when checking whether the abstract method of a trait is satisfied. 2011-08-15 11:16:18 +00:00
Stefan Marr
b14b440c93 Fixed Bug #55372 Incorrect handling of literals led to memory corruption.
# Dmitry you might want to review this patch, since I split up zend_add_literal
# and added a version for post-pass_two() usage.
2011-08-15 09:54:06 +00:00
Stefan Marr
adfdd01372 Addendum for patch to bug #55214: Class name was freed before method literal referring to it.
# Thanks to Felipe for catching this.
# The fix duplicates the name into the literal to avoid the dependency
2011-08-15 08:29:48 +00:00
Etienne Kneuss
f8154b0288 Fix typo 2011-08-08 14:52:34 +00:00
Pierrick Charron
7f203d4385 Fix typo 2011-08-08 11:30:56 +00:00
Pierrick Charron
5035c11f0e Use snprintf to make the static analyzers happy 2011-08-08 11:19:49 +00:00
Derick Rethans
8ea0c7d6e6 - Document the new ZEND_DONT_UNLOAD_MODULES environment variable. 2011-08-08 07:42:58 +00:00
Pierrick Charron
6ea19be489 Use snprintf and strncat to make the static analyzers happy 2011-08-08 03:08:59 +00:00
Derick Rethans
20936960b5 - Fixed bug #55378: binary number literal returns float number though its value
is enough small
2011-08-07 17:36:31 +00:00
Gwynne Raskind
9e9c9b3430 For 5.4, fix C++-style comments. For trunk, forward-port build fix. 2011-08-07 16:31:21 +00:00
Felipe Pena
f9ca0cacb3 - Revert r314387
(property_info.name has the mangled name)
2011-08-07 13:04:02 +00:00
Pierrick Charron
3751efa3dc function_name cannot be false 2011-08-07 06:19:43 +00:00
Rasmus Lerdorf
c44c0490d5 Since we have fci_cache = &fci_cache_local inside that block
and fci_cache is then later used outside the block, fci_cache_local
can't be block-scoped here
2011-08-07 00:50:46 +00:00
Rasmus Lerdorf
50d67ef7b5 Use snprintf here instead to make the static analyzers happy. 2011-08-07 00:25:22 +00:00
Rasmus Lerdorf
71af9259e3 Use property_info.name here instead since *name might be free'ed at this point
@dmitry please review
2011-08-07 00:01:17 +00:00
Felipe Pena
9480eace41 - Added ZEND_MOD_END macro to use in the end of zend_module_dep[] 2011-08-06 14:47:44 +00:00
Felipe Pena
9c289189d3 - Added missing PHP_FE_END/ZEND_FE_END 2011-08-06 01:22:27 +00:00
Rasmus Lerdorf
dc1e148165 Another potential missing va_end() found by Coverity 2011-08-05 22:26:16 +00:00
Rasmus Lerdorf
1ac9192d46 Fix missing va_end() found by Coverity 2011-08-05 22:18:42 +00:00
Dmitry Stogov
6803a38928 Fixed bug #55339 (Segfault with allow_call_time_pass_reference = Off) 2011-08-02 07:38:23 +00:00
Dmitry Stogov
d4a80cfa8d Fixed bug #55305 (ref lost: 1st ref instantiated in class def, 2nd ref made w/o instantiating) 2011-08-01 15:23:16 +00:00
Dmitry Stogov
74f68932b7 Added support for Class::{expr}() syntax (Pierrick) 2011-08-01 12:08:44 +00:00
Dmitry Stogov
8ff0701e8d Fixed bug #50816 (Using class constants in array definition fails). 2011-08-01 11:21:23 +00:00
Felipe Pena
4442b3f7a8 - Fixed tests 2011-07-31 18:51:15 +00:00
Stefan Marr
88f497f27d Fixed Bug #55214 use of __CLASS__ within trait returns trait name not class name [TRAITS] [DOC] 2011-07-31 18:18:56 +00:00
Stefan Marr
dbc6849bca Added __TRAIT__ magic constant [TRAITS] [DOC]
# __TRAIT__ behaves like __CLASS__ more or less but is constraint to traits.
# Since traits are not types, there are not many valid use cases, and trying
# to use __TRAIT__ to make traits more like classes is discouraged.
2011-07-31 17:39:30 +00:00
Stefan Marr
70aad763e9 Fixed test which was assuming that E_STRICT is not on by default. 2011-07-31 16:15:40 +00:00
Felipe Pena
b07c3c3e01 - Fixed bug #55326 (Trait method copying misindentifies serialization callbacks)
patch by: Gustavo Lopes (cataphract@php)
2011-07-31 12:27:47 +00:00
Dmitry Stogov
b32445d4f3 Reverted Gopal's patch that allowed plugable interned string check
1. It introduced a significant slowdown
2. It didn't fix the real problem in APC (I'm goint to commit the fix)
2011-07-28 12:01:42 +00:00
Gopal Vijayaraghavan
8089b31002 merge to trunk - Allow zend_is_interned_string to be pluggable 2011-07-28 03:03:06 +00:00
David Soria Parra
0beb0e7056 Check if given string is long enough in zend_*_strtod 2011-07-27 14:17:45 +00:00
Pierre Joye
4d0f1bfeb4 - add binary suport, FR #50638, as defined in RFC https://wiki.php.net/rfc/binnotation4ints, patch by Jonah Harris 2011-07-27 00:14:02 +00:00
Felipe Pena
06f18d8cca - Fix compiler warning 2011-07-25 11:51:43 +00:00
Felipe Pena
28461a5f3c - Use ZEND_FE_END macro here 2011-07-25 11:50:10 +00:00
Felipe Pena
f8a3334c89 - Added new macro to be used in the end of zend_function_entry declaration (Gwynne) 2011-07-25 11:30:53 +00:00
Stanislav Malyshev
7bb8f9eecb Change E_ALL to include E_STRICT 2011-07-23 22:07:22 +00:00
Pierre Joye
cbe0ed86e7 - add short array syntax as defined in https://wiki.php.net/rfc/shortsyntaxforarrays, 2nd solution using => only 2011-07-23 20:23:21 +00:00
Stefan Marr
c9fdd777fb Fixed incorrect initialization when copied op_array.vars was NULL (TRAITS) 2011-07-23 18:12:31 +00:00
Stefan Marr
f295302af6 Fixed bug in the handling of conflicting property initializers for traits.
# Bug was uncovered by discussion in http://news.php.net/php.internals/54129
# Forgot to check the actual value of the initializer comparison, only checked
# whether comparison was successful which is not enough.
2011-07-23 13:48:07 +00:00
Pierre Joye
f169f6f478 - should not have been applied 2011-07-22 11:42:15 +00:00
Pierre Joye
cc1c7af037 - remove magic quotes support, functions are kept (see the NEWS entry for the details) for BC reasons but do not allow to set enable MQ 2011-07-22 11:25:30 +00:00
Derick Rethans
ecd9d194d0 - Added a check for an enviroment variable (ZEND_DONT_UNLOAD_MODULES) that, if
set, prevents PHP from dl_closing() modules on shutdown.
- This makes it possible to spot memory leaks with valgrind in shared modules.
2011-07-14 12:21:15 +00:00
Stanislav Malyshev
35f19cb969 remove warning for is_a() BC 2011-07-12 05:20:40 +00:00
Dmitry Stogov
0f3e70fe01 Fixed bug #54305 (Crash in gc_remove_zval_from_buffer) 2011-07-11 10:31:49 +00:00
Dmitry Stogov
fb6440b4f1 Fixed bug #55150 (php -a segfaults) 2011-07-11 07:10:30 +00:00
Felipe Pena
62e4cfc2d0 - Added zend_is_auto_global_quick function 2011-07-10 15:03:38 +00:00
Felipe Pena
31a69cd480 - Year++ 2011-07-10 13:05:32 +00:00
Felipe Pena
17a7fd0656 - Minor optimization taking the computed hash of interned strings 2011-07-10 12:37:42 +00:00
Felipe Pena
5d20a8f801 - Minor optimization, use the computed hash when available 2011-07-10 02:00:00 +00:00
Felipe Pena
0fe6fd9e89 - Changed zend_resolve_class_name() prototype
# No needed to pass fetch_type as pointer here
2011-07-09 17:27:59 +00:00
Felipe Pena
5cb1602aab - Minor optimization and clean up 2011-07-09 12:06:11 +00:00
Felipe Pena
31c043e7af - CS and WS 2011-07-08 19:52:21 +00:00
Felipe Pena
866240200f - Fixed bug #55156 (ReflectionClass::getDocComment() returns comment even though the class has none) 2011-07-07 23:07:14 +00:00
Dmitry Stogov
3931078e7f Fixed bug #55135 (Array keys are no longer type casted in unset()) 2011-07-06 12:04:02 +00:00
Felipe Pena
8cf3c27f82 - Fixed bug #55137 (Changing trait static method visibility) 2011-07-06 00:33:38 +00:00
Dmitry Stogov
34b8924f95 Fixed bug #53727 (Inconsistent behavior of is_subclass_of with interfaces) 2011-07-04 14:55:39 +00:00
Felipe Pena
5f33819f9c - Removed accidental offsetof definition 2011-07-03 01:29:23 +00:00
Felipe Pena
0124c28610 - Fixed bug #55086 (Namespace alias does not work inside trait's use block)
patch by: Pierrick
2011-07-02 17:12:20 +00:00
Felipe Pena
bcf7e60d4c - Fixed build on Windows 2011-06-24 00:38:53 +00:00
Felipe Pena
72f7be3df0 - Improved parse error messages 2011-06-23 23:00:53 +00:00
Felipe Pena
c6b73c85ba - Fix broken code in 64bit 2011-06-20 22:59:55 +00:00
Patrick Allaert
101c6a3831 Fixed typo 2011-06-20 17:49:19 +00:00
Felipe Pena
58d41e5753 - Optimize property finding by zend_hash_quick_find 2011-06-20 02:04:13 +00:00
Felipe Pena
d188a36547 - Simplify function code 2011-06-20 01:36:23 +00:00