Dmitry Stogov
1d6c98a136
Fixed bug #60444 (Segmentation fault with include & class extending)
2011-12-05 09:20:12 +00:00
Dmitry Stogov
6cfbcb2268
Expose zend_signal_handler_unblock() to DSO extensions to allow usage of HANDLE_UNBLOCK_INTERRUPTIONS macro
2011-12-02 12:14:16 +00:00
Dmitry Stogov
f10b3bb556
Fixed icorrect key length after updating constant index
2011-12-01 13:58:29 +00:00
Felipe Pena
bfb1d38b9c
- Added tests for bug #60350
...
patch by: php@mickweiss.com
2011-11-30 21:04:07 +00:00
Felipe Pena
a89f1d3cfa
- Fixed bug #60350 (No string escape code for ESC (ascii 27), normally \e)
...
patch by: php at mickweiss dot com
2011-11-30 19:42:59 +00:00
Stefan Marr
db0888dfc1
Fixed Bug #60369 Crash with static property in trait
2011-11-23 21:24:34 +00:00
Antony Dovgal
e14819439c
export zend_on_timeout handler from ZE
2011-11-22 03:39:12 +00:00
Stanislav Malyshev
0f0ffd38c9
fix is_a reflection
2011-11-20 22:20:03 +00:00
Felipe Pena
ebd7dc5f88
- Fix tests
2011-11-19 18:01:26 +00:00
Felipe Pena
bc810a443d
- Fixed bug #43200 (Interface implementation / inheritence not possible in abstract classes)
2011-11-19 13:36:03 +00:00
Felipe Pena
cc8573e7a5
- CS
2011-11-18 13:56:41 +00:00
Stefan Marr
76772dc20d
Fixes Bug #54441 (Handling of changing modifiers on a trait alias)
...
# this now results also in a compilation error, since it would open the door for inconsistencies, and violates the DRY principle.
2011-11-18 13:49:07 +00:00
Dmitry Stogov
a65abc12b6
Fixed bug #60138 (GC crash with referenced array in RecursiveArrayIterator)
2011-11-18 12:43:53 +00:00
Stanislav Malyshev
66877fbd15
fix typo
2011-11-18 09:15:15 +00:00
Stanislav Malyshev
77d0643b68
fixes for bug #55748
2011-11-18 07:11:19 +00:00
Felipe Pena
c5ec9dd650
- Fix build
2011-11-17 21:07:52 +00:00
Stefan Marr
c5ba229617
Fixed Bug #60165 (Aliasing unexisting trait should throw/trigger the exception/error)
...
- aliases that are not actually matching anything are treated as errors now. This
will make sure that all methods that are expected to be in a class are actually
there, or in case a trait changed for instance, that the code breaks already
on composition
- Precedence declarations are also checked to ensure that the method
which is supposed to take precedence actually exists, however,
the other traits mentioned in the declaration are not regarded.
We are more lenient here, since this avoids unnecessary fragility.
- fixed another seamingly unrelated test which broke in the progress
but wasn't clear before either.
2011-11-17 21:04:15 +00:00
Felipe Pena
3c7a573a2c
- Fixed bug #60099 (__halt_compiler() works in braced namespaces)
2011-11-16 17:41:40 +00:00
David Soria Parra
c4d5231a36
Fix #60218 (instantiating unknown class leads to memory leak in cli)
2011-11-12 17:05:08 +00:00
Stanislav Malyshev
3598185a74
fix bug #55475 - implement is_a BC solution
2011-11-09 05:27:45 +00:00
Rasmus Lerdorf
c3e56a152c
Here too
2011-11-08 20:37:09 +00:00
Rasmus Lerdorf
9597bc0801
This really shouldn't fail, but if it does, like on OSX under Valgrind,
...
let's just issue a warning.
2011-11-08 20:32:29 +00:00
Dmitry Stogov
cacf363957
Fixed bug #60104 (Segmentation Fault in pdo_sqlite when using sqliteCreateFunction())
2011-11-08 10:11:25 +00:00
Felipe Pena
ff48763f4b
- Added class member access on instantiation (e.g. (new foo)->bar()) support
2011-11-06 13:25:45 +00:00
Stefan Marr
5745f95372
Fixed inconsistent whitespace.
...
# Belongs to svn rev. 318793.
2011-11-05 02:05:28 +00:00
Stefan Marr
7334dfd7eb
Fixed Bug #60217 (Requiring the same method from different traits)
...
- also added test to check for inconsistent abstract method definitions, they need to be compatible
2011-11-05 01:46:40 +00:00
Antony Dovgal
36103d1236
use jmp_addr only when it's initialized
2011-11-03 08:39:12 +00:00
Xinchen Hui
cae2f1381f
Fix bug #60169 Conjunction of ternary and list crashes PHP
2011-11-03 03:59:41 +00:00
Ferenc Kovacs
5bf6eaf3f4
adding memory check for FreeBSD also, TODO: refactor the free memory check into a function in an include file
2011-11-02 21:27:03 +00:00
Antony Dovgal
ed276758f7
fix folding, ws and cs
2011-11-02 21:12:13 +00:00
Antony Dovgal
8d520d6296
initialize variable and fix segfaulting tests
2011-11-02 21:05:36 +00:00
Dmitry Stogov
e0f781f496
Fixed bug #60139 (Anonymous functions create cycles not detected by the GC)
2011-11-02 06:31:33 +00:00
Ferenc Kovacs
8412709f37
allocating more than 2GB memory is slow.
2011-11-01 21:27:57 +00:00
Stefan Marr
4591498df7
Fixed Bug #60153 (Interface method prototypes not enforced when implementd via traits.)
...
# Moved the freeing of overriden functions to a point after the check.
# The new check comes after the normal inheritance check to give the first check
# the opportunity to abort with a more detailed error.
# Also fixed a small type in an unrelated test.
2011-11-01 15:25:24 +00:00
Stefan Marr
9b0d73af1d
Added missing consistency check for abstract methods required by one trait and implemented by another.
2011-11-01 13:42:53 +00:00
Stefan Marr
b5f15ef561
Fixed Bug #60145 (Usage of trait's use statement inside interfaces not properly checked.)
2011-11-01 00:39:10 +00:00
Stefan Marr
2e5d5e5ac6
Fixed Bug #60173 (Wrong error message on reflective trait instantiation)
2011-10-31 22:59:00 +00:00
Xinchen Hui
63812d1849
Update tests
2011-10-31 06:52:45 +00:00
Xinchen Hui
378ad2f447
Test for #60174 (Notice when array in method prototype error)
2011-10-31 06:04:43 +00:00
Xinchen Hui
5921e73a37
Fixed bug #60174 (Notice when array in method prototype error)
...
this should also exists in ext/reflection. since the new warning of "array to string convert" is introduced in zend_make_printable_zval which is used in ext/reflection too
2011-10-31 03:47:11 +00:00
Xinchen Hui
9d98b3e39a
tests for 60169
2011-10-30 06:28:24 +00:00
Ferenc Kovacs
b6aa3964d8
check the available memory on linux and skip if it is not enough
2011-10-23 00:07:01 +00:00
Ferenc Kovacs
9798694c03
shave off 900M memory from this test
2011-10-22 23:47:52 +00:00
Stanislav Malyshev
d81ea16ef1
Changed silent conversion of array to string to produce a notice. (Patrick)
2011-10-21 06:08:47 +00:00
Arnaud Le Blanc
07b7ba8b40
Improved ternary operator performance when returning arrays
2011-10-18 19:42:42 +00:00
Stanislav Malyshev
05c5c8958e
Bug #55754 - Only variables should be passed by reference for ZEND_SEND_PREFER_REF params
2011-10-16 00:34:01 +00:00
Stefan Marr
e14354af21
Fixed Bug #55554 (Legacy constructors not handled properly) [TRAITS] [DOC]
...
# The handling of legacy constructors defined by traits was corrected.
# They are now properly registered and used on instantiation.
# The situation for conflicting legacy and __construct constructors is
# mostly identical. If they are defined in the class, they override conflicts
# and do not collide. However, in case different styles are mixed, between
# class and trait definition, we assume a programmer's mistake and report
# a collision.
#
# BTW: +1 for all the fixed tests! `make test` is fun again.
2011-10-09 11:13:27 +00:00
Stefan Marr
469fc0a341
Use ZEND_ constants instead of plain strings for names of magic methods.
...
# No functional changes.
2011-10-08 23:47:16 +00:00
Xinchen Hui
4ffc16611d
Remove unecessary codes
2011-10-07 04:14:31 +00:00
Xinchen Hui
2e925f6f19
Fixed bug #55825 , and add test script
2011-10-03 17:01:17 +00:00