Sebastian Bergmann
4223aa4d5e
MFH: Bump year.
2007-01-01 09:36:18 +00:00
Ilia Alshanetsky
96d9d6f0f1
Avoid strcpy() & strcat()
2006-12-28 00:17:48 +00:00
Antony Dovgal
bed14f8ab7
MFH
2006-12-21 11:08:00 +00:00
Dmitry Stogov
011e0cde62
Start timiout thread on Windows only if necessary
2006-11-10 11:49:35 +00:00
Johannes Schlüter
6841110122
- MFH: added missing return...
2006-10-18 17:04:49 +00:00
Johannes Schlüter
dcf249004c
- MFH: Fix #38465 (ReflectionParameter fails if default value is an access to self::
2006-10-18 16:35:15 +00:00
Antony Dovgal
630024d895
MFH
2006-10-11 16:11:56 +00:00
Dmitry Stogov
ecd52167d7
Fixed wrong return value
2006-09-28 07:16:31 +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
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
Stefan Esser
7bbf35320d
MFH: Added hook for compile_string()
2006-06-13 12:57:48 +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
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
637a40423c
- MFH as discussed
...
. zend_exception_get_default() -> zend_exception_get_default(TSRMLS_D)
. zend_get_error_exception() -> zend_get_error_exception(TSRMLS_D)
. added E_RECOVERABLE_ERROR
. added ZEND_TOSTRING_FUNC_NAME
. added __tostring function cache to zend_class_entry
. added ZEND_NAMED_ME
. modified ZEND_ME_MAPPING to support method flags
. added ZEND_MN
. method entries now use prefix "zim_" instead of "zif_"
. drop EG(ze1_compatibility_mode)
. changed cast handler, now without (int should_free):
typedef int (*zend_object_cast_t)(zval *readobj, zval *retval, int type TSRMLS_DC);
. changed get_iterator, now receives whether value is by ref:
zend_object_iterator *(*get_iterator)(zend_class_entry *ce, zval *object, int by_ref TSRMLS_DC);
. added zend_objects_store_add_ref_by_handle
. added zend_objects_store_del_ref_by_handle
. convert_to_explicit_type(pzv, type)
2006-05-09 23:53:23 +00:00
Antony Dovgal
32872b157e
there is no %v in 5_1
2006-04-20 22:49:20 +00:00
Dmitry Stogov
d82462485e
FIX: For some reason SIGSEGV handler wasn't set, but was restoring. Now all SIGSEGV related code is commented.
2006-03-17 08:47:41 +00:00
Dmitry Stogov
161ae714ae
zend_hash_apply() doesn't use ZEND_HASH_APPLY_... macros
2006-03-14 11:24:45 +00:00
Dmitry Stogov
ad10a538ee
Optimized cleanup loops on request shutdown
2006-03-13 11:13:42 +00:00
Dmitry Stogov
54adfc6fcf
Fixed incorrect backtrace type ("::" instead of "->") for __set()/__get()
2006-03-03 12:06:29 +00:00
Marcus Boerger
5a69b29082
- Warning fixes by Steph
2006-02-26 10:57:00 +00:00
Marcus Boerger
941b0651dc
- MFH: Function deprecation flag
2006-02-25 18:25:45 +00:00
Marcus Boerger
b1cebf32e4
- MFH Fix issues with static method invocation
2006-01-22 22:14:32 +00:00
Antony Dovgal
01e8d313c8
MFH: make sure ce_child is properly initialized
2006-01-18 21:06:47 +00:00
Andi Gutmans
61e93ccfe8
- Update copyright notices to 2006
2006-01-04 23:53:05 +00:00
Dmitry Stogov
9c2ea13abc
Fixed bug #35612 (iis6 Access Violation crash). (alacn dot uhahaa at gmail dot com)
2005-12-22 16:46:15 +00:00
Antony Dovgal
9255733c4f
fix leak appearing when __autoload() throws an exception
2005-12-20 11:25:34 +00:00
Marcus Boerger
0cd997d79c
- Simplify and synch is_callable_ex() with actual execution code
...
. Allow array($this, 'parent::method') for function 'pointers'
. Spit out E_STRICT in case of erroneous use of function 'pointers'
2005-12-16 22:15:41 +00:00
Dmitry Stogov
599221036f
Fixed bug #35612 (iis6 Access Violation crash)
2005-12-09 18:10:45 +00:00
Dmitry Stogov
9ee0707cfa
Fixed bug #35509 (string constant as array key has different behavior inside object)
2005-12-05 08:56:09 +00:00
Dmitry Stogov
a570981151
Fixed bug #35360 (exceptions in interactive mode (php -a) may cause crash)
2005-11-24 11:33:11 +00:00
Dmitry Stogov
8212034254
Fixed SIGSEGV
2005-10-27 19:25:52 +00:00
Dmitry Stogov
03cb8e959b
Fixed bug #34767 (Zend Engine 1 Compatibility not copying objects correctly)
2005-10-20 08:14:59 +00:00
Dmitry Stogov
9305339d94
Changed "instanceof" and "catch" operators, is_a() and is_subclass_of() functions to not call __autoload().
2005-09-09 06:48:49 +00:00
Dmitry Stogov
6319efa013
Fixed bug #34260 (Segfault with callbacks (array_map) + overloading)
2005-09-02 07:47:28 +00:00
foobar
916815b779
Bump up the year
2005-08-03 13:30:58 +00:00
Dmitry Stogov
650cdaed12
Fixed bug #33942 (the patch to #33156 crash cygwin except cli)
2005-08-02 17:01:17 +00:00
foobar
2a8cd27f4e
bug #33865
2005-07-26 18:33:15 +00:00
Marcus Boerger
e11fc8bda4
- Fix error generation logic (found by johannes)
2005-07-21 16:52:32 +00:00
Dmitry Stogov
c25b8a3699
Fixed bug #33156 (cygwin version of setitimer doesn't accept ITIMER_PROF). (Nuno)
2005-07-12 06:52:59 +00:00
Dmitry Stogov
d9c1a380ad
Fixed bug #28072 (static array with some constant keys will be incorrectly ordered).
2005-07-07 15:16:57 +00:00
Dmitry Stogov
1d33a3e95e
Fixed bug #31158 (array_splice on $GLOBALS crashes)
2005-07-04 10:01:10 +00:00
Dmitry Stogov
12b66c262a
Fixed bug #30519 (Interface not existing says Class not found)
2005-06-24 08:45:17 +00:00
Dmitry Stogov
da2ab06111
Fixed bug #29896 (Backtrace argument list out of sync)
2005-06-22 15:26:05 +00:00
Dmitry Stogov
aedbdb087d
Allowed return by refrence from internal functions
2005-06-16 14:56:13 +00:00
Dmitry Stogov
59a46c34fa
Fixed double call to php_stream_close() on compiler errors
2005-06-09 16:57:43 +00:00
Dmitry Stogov
9affa32237
Fixed bug #30140 (Problem with array in static properties)
2005-06-08 13:21:28 +00:00
Dmitry Stogov
d2018ef2c0
Fixed bug #33116 (crash when assigning class name to global variable in __autoload).
2005-05-26 14:28:24 +00:00
Stanislav Malyshev
ba7123fc9b
fix #29890 - crash when function call fails
2005-05-18 18:02:50 +00:00
Marcus Boerger
138c5457ac
- Part 2 of #30126 : Enhancement for error message for abstract classes
2005-05-02 15:57:35 +00:00
Marcus Boerger
f44dc4c930
- Part 1 of #30126 : Enhancement for error message for abstract classes
2005-05-02 15:55:05 +00:00
foobar
fcba5e099c
- Fixed bug #28839 (SIGSEGV in interactive mode (php -a))
...
(kameshj at fastmail dot fm)
2005-03-26 02:43:02 +00:00
Marcus Boerger
32c2e664a6
- Fix all incarnations of bug #30266
...
# most probably we should emit a fatal error here but that has to be
# discussed first
2005-03-19 14:25:42 +00:00
Marcus Boerger
d8db1c2cc5
- Actually this is a much better error decription
2005-03-13 13:22:02 +00:00
Marcus Boerger
565e832edf
- Bugfix #32290
2005-03-13 13:15:08 +00:00
Marcus Boerger
a57b6bad69
- Be more gracious in reflection API
2005-02-13 23:04:49 +00:00
Marcus Boerger
6159f69023
- Bugfix #30682 (autoconversion from false/true to 0/1 missing in case of
...
static property default value)
2005-02-12 16:38:47 +00:00
Stanislav Malyshev
3925337a55
Fix #31720 Invalid object callbacks not caught in array_walk() (patch from Antony Dovgal)
2005-02-02 10:36:02 +00:00
Marcus Boerger
0236e31313
- Fix severity (found by johannes)
2005-01-28 20:24:20 +00:00
Stanislav Malyshev
e9003696bd
fix crash
2004-11-17 12:06:27 +00:00
Derick Rethans
e612284ea4
- Fixed bug #30630 : Added a BSD based strtod function that is
...
locale-independent.
2004-11-03 23:13:32 +00:00
Marcus Boerger
c5a9a5a284
- Change zend_object_handlers->get_method() to allow aggregation for internal classes
2004-10-30 19:11:37 +00:00
Dmitry Stogov
3f35c6a6cc
Added test cases for CV optimization patch
2004-10-05 06:53:39 +00:00
Andi Gutmans
11bcaedfc8
- Rename delete_global_variable() to zend_delete_global_variable()
2004-10-04 20:17:06 +00:00
Andi Gutmans
db507dd153
- Commit the variable fetch optimization.
...
- Extensions which delete global variables need to use new special function
- delete_global_variable() (I'm about to rename it) to remove them.
- Will post to internals@ or via commit messages if there's anything else.
2004-10-04 19:54:35 +00:00
Andi Gutmans
3e2b49ab5b
- Return the warning until we check if we can change the type of str.len
2004-09-28 19:46:57 +00:00
Marcus Boerger
16c1f0ae74
- Fix warning
...
# What's the reason _zvalue_value.str.len is int instead of uint/zend_uint?
2004-09-27 08:50:41 +00:00
Andi Gutmans
f82ed13625
- Commit new VM architecture. This one allows people (aka Derick) to
...
- ask the engine to use function handler mode. Will update the README
- about that.
2004-09-23 21:43:32 +00:00
Anantha Kesari H Y
b04db9d9e0
Reverted the NetWare Specific Stack limit related patches as asked by Andi
2004-09-23 06:23:36 +00:00
Anantha Kesari H Y
b66e7aec62
NetWare specific stack limit checks
2004-09-22 15:51:56 +00:00
Stanislav Malyshev
3755c03291
fix crash when dtor is fialing on shutdown
2004-09-17 10:13:52 +00:00
Andi Gutmans
96ab56e146
- Roll back VM commit
2004-09-09 16:47:22 +00:00
Andi Gutmans
8eb8850c90
- Some architectural changes:
...
a) We specialize opcodes according to op_type fields. Each opcode has to
be marked with which op_type's it uses.
b) We support different execution methods. Function handlers, switch()
and goto dispatching. goto seems to be the fastest but it really
depends on the compiler and how well it optimizes. I suggest playing
around with optimization flags.
- Warning: Things might break so keep us posted on how things are going.
(Dmitry, Andi)
2004-09-08 22:14:12 +00:00
Marcus Boerger
b7a8297bc1
- Boost up __autoload() calls by caching the lookup
2004-08-23 20:57:40 +00:00
Andi Gutmans
57ba9b8ccf
- Second wave of garbage removal.
2004-08-19 20:29:04 +00:00
Marcus Boerger
5f0433db83
MFB: Enforce protocol on magic methods/functions
2004-08-02 08:27:57 +00:00
Andi Gutmans
d7c839d54f
- More ptr_stack optimizations and cleanups
2004-07-30 21:00:37 +00:00
Marcus Boerger
0cd2da0309
- Execute destructors earlier (Florian Schaper, fschaper at intux org)
2004-07-25 07:14:49 +00:00
Wez Furlong
af9c0b84cd
No point allocating 0 bytes
2004-07-18 09:55:02 +00:00
Wez Furlong
d80297b251
Fix bug #28438 : win32 build fails in non-zts mode
2004-05-18 20:14:54 +00:00
Dmitry Stogov
09d1d232fc
fix of fix related to __autoload. (ext/standard/tests/network/bug20134.phpt passes again)
2004-03-28 09:37:30 +00:00
Andi Gutmans
d6d52f6f2e
/* The compiler is not-reentrant. Make sure we __autoload() only during run-time
...
* (doesn't impact fuctionality of __autoload()
*/
2004-03-25 11:30:02 +00:00
Dmitry Stogov
2bbba73606
Using ALLOC_HASHTABLE/FREE_HASHTABLE instead of emalloc/free.
2004-03-25 08:14:33 +00:00
Dmitry Stogov
55cf45abf5
New autoload protection schema was implemented (Using HashTable instead of boolean flag)
2004-03-24 14:30:59 +00:00
Marcus Boerger
cbaa43ff12
Fix SEGV in certain conditions while calling static methods
2004-03-16 21:29:22 +00:00
Marcus Boerger
6e8c176a9d
TSRM fix
2004-03-16 18:04:25 +00:00
Derick Rethans
b0dbd2abcc
- Spaces to tabs
2004-03-16 14:59:06 +00:00
Andi Gutmans
833b97d4c2
- If the called method is static then don't define $this
2004-03-16 14:49:52 +00:00
Andi Gutmans
0041aff953
- Error out if get_method() isn't defined.
...
- Use calling scope of internal function callee when calling a method
using static syntax (array("A", "func"));
2004-03-16 14:39:07 +00:00
Marcus Boerger
09e76476ef
Improve error message
2004-03-16 10:14:57 +00:00
Andi Gutmans
1aedb9615a
- Fix windows build
2004-03-14 18:00:40 +00:00
Andi Gutmans
37d713ea49
- Fix for bug #27504
2004-03-14 17:52:58 +00:00
Marcus Boerger
50ee116f08
Clearify the different method/class flags (as discussed with Andi).
2004-03-09 16:38:37 +00:00
Marcus Boerger
c3b06ea21e
Check count.
2004-03-08 16:52:59 +00:00
Andi Gutmans
7c72f6ff61
- Fix crash in exception handling (zend_exception_error(...) and
...
zend_eval_string_ex() were buggy (Dmitry, Andi)
2004-03-01 13:29:45 +00:00
Zeev Suraski
eb6fd52e21
- Rename compatiblity mode to zend.ze2_compatibility_mode (it doesn't only affect auto-clone).
...
- Perform implementation checks even with simple inheritance (off when
compatibility mode is enabled).
- Restore default arguments in interfaces and handle it correctly.
- Move registration of internal classes later in the startup sequence
in order to have INI options available.
2004-02-25 10:57:10 +00:00
Zeev Suraski
00ed3bad29
Centralize exceptions code in zend_exceptions.[ch].
...
Remove zend_default_classes.h (use zend_exceptions.h instead)
NOTE: This currently breaks the build, fixes to php-src and pecl coming
soon
2004-02-12 10:38:14 +00:00
Zeev Suraski
d9630a595b
Exceptions updates:
...
- Enforce exceptions to be derived from class Exception. This allows
users to perform catch-all. It's not yet complete, so don't get
comfortable with it just yet :) Updates are coming soon.
- Implement zend_throw_exception() using zend_throw_exception_ex()
2004-02-12 10:24:40 +00:00
Andi Gutmans
559b14611d
- Add API function to throw exception by using an object
2004-02-12 09:50:08 +00:00
Zeev Suraski
75390796be
Fix bug #25038
2004-02-11 13:01:39 +00:00
Zeev Suraski
6b6fe2f76e
Fix exceptions thrown without a stack frame
...
Always enable set_exception_handler()
2004-02-11 12:31:18 +00:00