Dmitry Stogov
7e17f8591a
Fixed bug #38772 (inconsistent overriding of methods in different visibility contexts)
2006-09-12 11:01:16 +00:00
Antony Dovgal
d6ee9d4810
MFH: fix #38779 (engine crashes when require()'ing file with syntax error through userspace stream wrapper)
2006-09-11 14:30:08 +00:00
Antony Dovgal
0a1f5d12a1
fix tests
2006-09-11 14:17:51 +00:00
Antony Dovgal
5a9f40a46a
add tests
2006-09-11 14:13:25 +00:00
Antony Dovgal
6d040bf67a
fix test
2006-09-11 08:08:20 +00:00
Dmitry Stogov
0c3c55edac
Fixed php_admin* bypass by ini_restore()
2006-09-06 08:54:44 +00:00
Dmitry Stogov
afb8af1f5f
Reverted last Ilia's patch (for bug #38579 ).
...
The patch didn't fix the bug and made new one.
2006-09-06 06:37:42 +00:00
Ilia Alshanetsky
229137cad4
Fixed bug #38579 require_once/include_once optimization causes files to be
...
loaded multiple times.
2006-09-05 15:50:07 +00:00
Dmitry Stogov
87eaaf494b
Removed unreachable handlers
2006-09-04 13:58:54 +00:00
Dmitry Stogov
54123daa8d
Show name of storage layer in case of initialization fault.
2006-08-31 11:53:57 +00:00
Antony Dovgal
235e3939d5
s/pinter/pointer/
2006-08-30 22:29:24 +00:00
Antony Dovgal
191d68618a
delete commented part, as it was done in HEAD
2006-08-28 10:59:18 +00:00
Antony Dovgal
f7ba7232d8
MFH: fix #38624 (Strange warning when incrementing an object property and exception is thrown from __get method)
2006-08-28 10:27:58 +00:00
Dmitry Stogov
c42b3bf689
Fixed bug #38315 (Constructing in the destructor causes weird behaviour)
2006-08-24 09:42:35 +00:00
Dmitry Stogov
27d3021704
Fixed bug #38265 (heap corruption)
2006-08-23 13:00:48 +00:00
Dmitry Stogov
4180155a47
Fixed "win32" storage manager
2006-08-22 05:54:15 +00:00
Ilia Alshanetsky
8405e1741f
Use proper write callback
2006-08-19 16:20:08 +00:00
Antony Dovgal
be316018fd
apply correct fix for bug #38461
2006-08-15 20:30:42 +00:00
Antony Dovgal
08d398aa48
MFH: fix #38461 (setting private attribute with __set() produces segfault)
2006-08-15 13:19:13 +00:00
Antony Dovgal
4ad05e0e0f
add test
2006-08-15 08:58:40 +00:00
Antony Dovgal
6277ba98d9
there is no realiable way to detect memrchr() presence because of a mess in glibc
...
so let's use our own implementation
2006-08-08 10:54:24 +00:00
Derick Rethans
5794832a72
- Added some docs here so that nobody needs to figure it out once more.
2006-08-08 09:46:46 +00:00
Antony Dovgal
b8617a6183
add zend_memrchr()
2006-08-08 09:41:09 +00:00
Marcus Boerger
05206b42d8
- Speling
2006-08-08 00:40:19 +00:00
Marcus Boerger
c1c2a0d294
- MFH Fixed Bug #38064 ignored constructor visibility
2006-08-07 23:24:33 +00:00
Dmitry Stogov
f5543a428d
Fixed bug #38287 (static variables mess up global vars)
2006-08-07 15:15:22 +00:00
Derick Rethans
2e55464f80
- There is a 2.3 now as well.
2006-08-04 06:48:20 +00:00
Antony Dovgal
bc8f1bc4f0
make it consistent
2006-08-03 10:57:41 +00:00
Antony Dovgal
c173c26b64
MFH: improve error message
2006-08-03 10:53:15 +00:00
Dmitry Stogov
a98e5c674f
Fixed bug #38234 (Exception in __clone makes memory leak)
2006-07-27 10:44:03 +00:00
Dmitry Stogov
ee97ffd887
Fixed bug #38047 ("file" and "line" sometimes not set in backtrace from inside error handler)
2006-07-27 08:20:38 +00:00
Dmitry Stogov
30f4d3f959
Fixed bug #38220 (Crash on some object operations)
2006-07-26 15:29:27 +00:00
Dmitry Stogov
e447baafa1
Fixed bug #38211 (variable name and cookie name match breaks script execution)
2006-07-26 09:24:26 +00:00
Dmitry Stogov
3688c103b5
Fixed crash of DEBUG version on SPARC CPU because of unaligned pointers.
2006-07-26 08:07:11 +00:00
Dmitry Stogov
356facf4af
Changed memory_get_usage() and memory_get_peak_usage(). Optional boolean argument allows get memory size allocated by emalloc() (by default) or real size of memory allocated from system.
2006-07-25 13:40:05 +00:00
Derick Rethans
c3e5ee1840
- Fixed typo.
2006-07-25 06:49:38 +00:00
Marcus Boerger
4da92e63af
- MFH Yet another problematic case with mangled properties
2006-07-24 22:36:21 +00:00
Marcus Boerger
519ed8e13b
- Better fix for #34505 and related, drop zend_unmangle_property_name_ex()
2006-07-24 17:58:32 +00:00
Dmitry Stogov
3b7386acea
Fixed memory leaks detection
2006-07-24 08:15:26 +00:00
Dmitry Stogov
a49e04477f
Test for bug #38146 (Cannot use array returned from foo::__get('bar') in write context)
2006-07-24 07:43:49 +00:00
foobar
2b8ad5a0af
MFH:- Fixed bug #38183 (disable_classes=Foobar causes disabled class to be called Foo)
2006-07-22 15:41:42 +00:00
Dmitry Stogov
33a1a4d39a
Changed error message (E_ERROR -> E_NOTICE) in case of indirect modification of overloaded property.
2006-07-21 10:32:17 +00:00
Dmitry Stogov
9a98904ddd
Fixed wrong "type" argument to read_property() handler
2006-07-21 08:39:30 +00:00
Antony Dovgal
926961192f
MFH
2006-07-20 07:30:22 +00:00
foobar
92f080a0a3
Missing file..
2006-07-19 13:45:43 +00:00
Dmitry Stogov
f7c99da2fe
Fixed bug #37144 (PHP crashes trying to assign into property of dead object)
2006-07-19 09:55:19 +00:00
Antony Dovgal
ca7875ab83
fetch tsrm_ls, don't use it uninitialized
2006-07-19 06:32:52 +00:00
Antony Dovgal
c204ff0258
MFH: fix build on platforms without mremap()
2006-07-18 15:41:58 +00:00
Dmitry Stogov
29ed52ffa4
New memory manager
2006-07-18 09:06:33 +00:00
Antony Dovgal
7f9a43653c
fix logic
2006-07-18 09:00:10 +00:00
Antony Dovgal
7a089a43af
MFH: fix DVAL_TO_LVAL() on AIX with old gcc
2006-07-18 08:17:28 +00:00
Antony Dovgal
a9469060e5
MFH: init variables and get rid of annoying warnings
2006-07-12 21:17:30 +00:00
Antony Dovgal
9d57621235
MFH: initialize EG(exit_status) in ZTS mode
2006-07-12 18:10:56 +00:00
Dmitry Stogov
8bb047ee97
Fixed bug #36759 (Objects destructors are invoked in wrong order when script is finished).
2006-07-12 07:54:00 +00:00
Antony Dovgal
3aaf62d159
there is no Unicode in 5_2
2006-07-11 12:15:11 +00:00
Dmitry Stogov
631a00a0a0
Fixed memory leak in case of exception in iterator callbacks in 'foreach(new Iterator()...' (spl/tests/iterator_047.phpt).
2006-07-11 08:52:28 +00:00
Marcus Boerger
704eced26b
- MFH Fixed Bug #37667 (Object is not added into array returned by __get)
2006-07-10 00:36:28 +00:00
Marcus Boerger
dd5cbcd24c
- Fixed Bug #37811 define not using toString on objects
2006-07-09 22:45:11 +00:00
Marcus Boerger
c514ee0c9b
- MFH Fix issue with comparing objects with objects
2006-07-09 18:03:42 +00:00
Marcus Boerger
e9be807267
- MFH Add new test
2006-07-09 17:04:27 +00:00
Marcus Boerger
fa57959f47
- MFH:
...
. Fix comparision edgecases involving objects (Tony, Marcus)
. Use ZVAL_LONG() where appropriate
2006-07-09 16:58:05 +00:00
Marcus Boerger
d5811fc08a
- MFH Fix test
2006-07-09 16:56:22 +00:00
Antony Dovgal
91f9af4360
add test
2006-07-06 16:14:56 +00:00
Sara Golemon
86bbbbdce4
MFH (def.h rev:1.121, execute.h rev:1.120)
...
Silence FETCH_OBJ_IS / undefined notices
2006-07-06 15:32:07 +00:00
Antony Dovgal
058b529ae7
oops.. fix copy/paste typo
2006-07-05 11:54:08 +00:00
Antony Dovgal
c4c96c042e
MFH: export zend_std_get_constructor()
2006-07-05 11:41:25 +00:00
Antony Dovgal
859ab9a4cf
MFH: improve error messages
2006-07-05 11:39:00 +00:00
Antony Dovgal
41ada4ba9b
add new tests
2006-06-27 21:10:04 +00:00
Antony Dovgal
badf27fb2a
MFH: no need to throw E_ERROR here
2006-06-27 19:58:43 +00:00
Antony Dovgal
1757bf8822
fix typo
2006-06-22 21:24:23 +00:00
Antony Dovgal
5ffbb85103
MFH: init variables
2006-06-20 13:28:11 +00:00
Antony Dovgal
8df36aaf32
fix test
2006-06-20 13:06:50 +00:00
Antony Dovgal
c458d1347b
fix tests
2006-06-19 17:33:44 +00:00
Dmitry Stogov
ada4e506a7
MFH: Added automatic module globals management.
2006-06-15 14:03:21 +00:00
Marcus Boerger
9660548a22
- MFH Arginfo fix (Hannes)
2006-06-13 20:57:35 +00:00
Stefan Esser
7bbf35320d
MFH: Added hook for compile_string()
2006-06-13 12:57:48 +00:00
Ilia Alshanetsky
f1fb77d1aa
Make zend_print_zval_r_ex() use the write callback function.
2006-06-11 16:28:24 +00:00
Dmitry Stogov
2a7d16f8fd
Proper fix for bug #37707 ("clone $x" must call __clone() enven if result value is not used)
2006-06-08 08:56:27 +00:00
Dmitry Stogov
6e24feb80d
Wrap "wrong" unreachable code with "#if 0"
2006-06-08 08:37:51 +00:00
Ilia Alshanetsky
8d4bb9ca74
Fixed bug #37707 clone without assigning leaks memory
...
# Based on a patch by Nuno
2006-06-07 13:41:49 +00:00
Marcus Boerger
64c353ab79
- MFH zend_fcall_info_*() and parameter parsing option 'f'
...
# Right now i see this as the best option but we might shuffle code around
# later if someone comes up with a better solution.
2006-06-07 09:43:54 +00:00
Marcus Boerger
de39078f7b
- Regenerated after zend_vm_def.h change
2006-06-07 09:22:08 +00:00
Marcus Boerger
5cdefd07cd
- MFH Fix issue with interfaces being inherited multiple times
2006-06-07 09:21:06 +00:00
Antony Dovgal
f6a400bd9f
revert by Andi's request
2006-06-06 14:17:21 +00:00
Antony Dovgal
e8d568ea8d
fix test
2006-06-06 11:33:59 +00:00
Antony Dovgal
8204511d71
MFH: do not allow to implement the same interface twice
...
add tests
2006-06-06 10:03:01 +00:00
Zeev Suraski
51d495850a
Restore ZE1 compatibility mode (Zend Engine part - the modules patches
...
will follow later today)
2006-06-05 13:58:52 +00:00
Stanislav Malyshev
0c518a03a9
fix .dsp build
2006-06-04 18:03:25 +00:00
Marcus Boerger
6c0f166794
- Fix function flag check
2006-06-04 10:27:28 +00:00
Dmitry Stogov
6c61aeb012
SAPI globals are destroied at this point and reporting errors about memory leaks can cause crash.
2006-06-02 13:30:55 +00:00
Antony Dovgal
ff59351416
add new tests
2006-06-01 11:57:49 +00:00
Antony Dovgal
29be5946f9
MFH: throw a warning when using invalid offset types with strings
2006-06-01 11:56:44 +00:00
Antony Dovgal
c188ec09eb
add more tests
2006-05-31 18:47:21 +00:00
Antony Dovgal
8f78a2727b
add tests for E_STRICT that will become E_FATAL in PHP 6
2006-05-31 14:54:52 +00:00
Dmitry Stogov
8df40bdb31
Keeping consistent arg_stack during arguments freeing (Exception from destructor may use inconsistent arg_stack for backtrace).
2006-05-31 13:01:57 +00:00
Dmitry Stogov
51e52e20ef
Support for nested exceptions and fatal errors in destructors
2006-05-31 12:59:31 +00:00
Marcus Boerger
d87de86823
- Switch back to old severities and still keep bugfix for
...
#37632 (Protected method access problem)
# It wasn't really my intention to change the severity. We simply didn't
# have tests for that.
2006-05-30 23:10:28 +00:00
Marcus Boerger
2d7d2aebe6
- MFH WS
2006-05-30 19:41:04 +00:00
Antony Dovgal
82d326bdea
MFH: there is no ce at this point, revert this line to its previous state
2006-05-29 21:28:29 +00:00
Marcus Boerger
1b172b1371
- MFH Bugfix #37632 (Protected method access problem)
2006-05-29 20:06:43 +00:00
Marcus Boerger
5f63b5c4ee
- Revert until there is an ok for the full patch
2006-05-27 20:16:53 +00:00
Marcus Boerger
ca6a202160
- WS
2006-05-27 19:06:06 +00:00
Marcus Boerger
493f39da2d
- MFH: Fix bug #37212 (Access to protected property of common base class)
...
By adding "zend_class_entry *ce" to struct zend_property_info;
2006-05-27 18:39:53 +00:00
Johannes Schlüter
ccfc0d9d99
- MFH Fix #37614 (Class name lowercased in error message)
2006-05-27 18:23:48 +00:00
Marcus Boerger
26145c2e0c
- WS/CS
2006-05-27 18:04:13 +00:00
Marcus Boerger
1d5f721fd9
- MFH Sync error messages and simplify error message generation code
2006-05-26 00:36:13 +00:00
Antony Dovgal
9dd24c6d87
fix error messages when converting objects to other types
...
add new function
MFB will follow soon
2006-05-25 10:01:06 +00:00
Dmitry Stogov
26ccde4da9
Fixed bug #37558 (timeout functionality doesn't work after a second PHP starup on the same thread). (p dot desarnaud at wanadoo dot fr)
2006-05-25 07:46:25 +00:00
Marcus Boerger
f88a172959
- MFH Handle NULL in C argument parsing correct
2006-05-23 22:22:11 +00:00
Marcus Boerger
8d4eea74d5
- Fix double error raising issue
2006-05-23 21:50:29 +00:00
Sebastian Bergmann
3e7df40852
MFH: Add bison 2.2 to the list of supported versions.
2006-05-23 11:11:16 +00:00
Marcus Boerger
7577130156
- MFH improve error messages
2006-05-21 18:10:31 +00:00
Marcus Boerger
1be624e7ba
- MFH Sync vm generation with head
...
- Regenerate vm
2006-05-21 18:00:14 +00:00
Marcus Boerger
290ed55060
- MFH Improved error message
2006-05-20 21:02:44 +00:00
Marcus Boerger
cd4ab2f6fe
- MFH Use correct version
2006-05-20 09:12:28 +00:00
Marcus Boerger
397c88ae74
- MFH Add new tests
2006-05-20 09:08:35 +00:00
Dmitry Stogov
cdb0ed7587
Fixed random crashes in ZTS mode becouse of uninitialized EG(modified_ini_directives).
2006-05-19 15:31:25 +00:00
Dmitry Stogov
14f6b9149d
Optimized zend_try/zend_catch macroses (eliminated memcpy())
2006-05-19 06:09:15 +00:00
Antony Dovgal
80d7ac0e9e
there is no %v in 5.2
2006-05-18 21:24:04 +00:00
Antony Dovgal
557b7fbec5
fix tests
2006-05-17 20:13:05 +00:00
Marcus Boerger
9c8b47d15e
- Fix oversight and drop E_STRICT in 5.x series
2006-05-17 19:07:45 +00:00
Antony Dovgal
6783be767a
change argument name, it should be "object" not "property"
2006-05-17 14:28:21 +00:00
Ilia Alshanetsky
21724432de
Fixed bug #35512 (Lack of read permission on main script results in
...
E_WARNING rather then E_ERROR).
2006-05-17 13:27:51 +00:00
Dmitry Stogov
be4c37919b
Added test
2006-05-15 16:44:54 +00:00
Dmitry Stogov
963c7fa016
Optimized require_once/include_once (eliminated fopen() on second usage)
2006-05-15 15:31:27 +00:00
Dmitry Stogov
14cad8fdc3
Optimized shutdown sequence to iterate only over modified ini directives
2006-05-15 14:52:35 +00:00
Marcus Boerger
0c40fb7ef2
- Readd that E_RECOVERABLE_ERROR, dropping it is a bad idea
2006-05-14 18:50:02 +00:00
Marcus Boerger
3fd2c5e217
- Do not include E_RECOVERABLE_ERROR to the default mode E_ALL
2006-05-14 18:45:10 +00:00
Marcus Boerger
d45250a058
- MFH code layout for __toString() use in parameter parsing api
2006-05-13 10:37:45 +00:00
Derick Rethans
07d0f0cf01
- MFH: Tests for BC breaking changes.
2006-05-12 10:02:31 +00:00
Sebastian Bergmann
ec7b8e2b1c
Bump version.
2006-05-12 05:36:09 +00:00
Marcus Boerger
b3c3c6de14
- Missing __toString() pieces
2006-05-12 00:21:00 +00:00
Antony Dovgal
7412202c43
no need to destroy the zval here
2006-05-11 22:41:37 +00:00
Marcus Boerger
7a5240e846
- MFH missing bits and pieces of the partial sync with head
...
# This time i added:
# ZEND_FE_RESET_VARIABLE
# ZEND_FE_RESET_REFERENCE
# and dapted parser,compiler,executor,interfaces to handle these flags
# their purpose is to be able to pass whetehr foreach is done by ref to
# the current() handler so that it can error out in case it is not capable
# to comply to the requested return signature/protocol/semantics (weyp).
2006-05-11 21:07:39 +00:00
Marcus Boerger
b636a534c1
- Drop second superflous zval_ptr_dtor in string arg parsing
2006-05-11 21:03:14 +00:00
Antony Dovgal
085e0fc51f
fix segfault when passing objects where strings are expected
2006-05-11 15:10:36 +00:00
Antony Dovgal
bc4e9efef7
add new test
2006-05-11 14:18:34 +00:00
Marcus Boerger
38ff4bba17
- MFH Add missing ZEND_API declarations
2006-05-11 08:11:45 +00:00
Antony Dovgal
37ed02b199
change it to be consistent with the others
2006-05-10 22:57:50 +00:00
Marcus Boerger
288da2242e
- Fix tests
2006-05-10 22:46:16 +00:00
Marcus Boerger
d76c516176
- Missing __ToString() sync
2006-05-10 21:13:22 +00:00
Marcus Boerger
f16bdce284
- Enforece rule of disallowing throw in __toString()
2006-05-10 21:12:48 +00:00
Marcus Boerger
0dacd6d5c0
- ze1 cleanup (bjori) /thx
2006-05-10 19:41:34 +00:00
Marcus Boerger
848c5c7695
- Missing __tostring() conversion snippets
2006-05-10 19:36:47 +00:00
Antony Dovgal
f7eec29f84
fix tests
2006-05-10 14:04:52 +00:00
Antony Dovgal
8a03fc5ef3
add missing parts of E_RECOVERABLE merge
2006-05-10 14:04:18 +00:00
Antony Dovgal
0f93228cb7
add missing ZEND_API to the implementation
2006-05-10 14:00:36 +00:00
Antony Dovgal
4f37b2f354
nuke extra semi-colon
2006-05-10 13:49:27 +00:00
Marcus Boerger
edfe649c6b
- MFH Constructors in interfaces
2006-05-10 01:23:55 +00:00
Marcus Boerger
43217a3225
i- ZE1_compat tests are no longer necessary
2006-05-10 00:41:23 +00:00