Sara Golemon
87bcf776f7
Plug leak of 1/2 bytes when converting from string/unicode
2005-09-12 17:42:43 +00:00
Dmitry Stogov
bd307bc0bd
Fixed bug #34137 (assigning array element by reference causes binary mess)
2005-09-01 13:21:04 +00:00
Andrei Zmievski
b80cb7bd2f
Unicode support
2005-08-11 23:35:03 +00:00
Dmitry Stogov
32d69c853a
Fixed bug #33996 (No information given for fatal error on passing invalid value to typed argument)
2005-08-05 09:35:09 +00:00
foobar
916815b779
Bump up the year
2005-08-03 13:30:58 +00:00
Dmitry Stogov
7aca138456
Fixed bug #33710 (ArrayAccess objects doen't initialize $this)
2005-07-19 07:33:00 +00:00
Dmitry Stogov
343af548a6
Fixed SIGSEGV on 'global ${"{$blah}_ID"};'
2005-07-04 13:24:46 +00:00
Stanislav Malyshev
fb0c96d07b
fix conditions for freeing
2005-06-29 08:44:01 +00:00
Antony Dovgal
aa88cd901f
fix leak: when dup was <success>ful zend_std_object_get_class_name() returns SUCCESS aka 0
2005-06-28 22:04:07 +00:00
Stanislav Malyshev
b95ec3528a
fix previous patch
2005-06-28 12:42:56 +00:00
Stanislav Malyshev
e3601d22a7
fixes for non-php objects
2005-06-28 10:49:56 +00:00
Dmitry Stogov
2037023874
Fixed bug #27268 (Bad references accentuated by clone).
2005-06-23 08:21:03 +00:00
Marcus Boerger
7f544adbb5
- Fix TSRM build
2005-06-16 17:29:29 +00:00
Dmitry Stogov
aedbdb087d
Allowed return by refrence from internal functions
2005-06-16 14:56:13 +00:00
Stanislav Malyshev
999998ecaa
rename to zend_
2005-06-16 14:27:08 +00:00
Dmitry Stogov
faacd7f865
Compilation warnings
2005-06-16 12:26:44 +00:00
Stanislav Malyshev
87c9e68c91
export zval getters
2005-06-16 11:50:08 +00:00
Dmitry Stogov
14b80ad199
Specializer optimization
2005-06-13 17:50:07 +00:00
Dmitry Stogov
cec2347c96
Fixed bug #33212 ([GCC 4]: 'zend_error_noreturn' aliased to external symbol 'zend_error').
...
The fix is not tested on Solaris and DARWIN!
2005-06-13 11:22:59 +00:00
Dmitry Stogov
84b96e9b03
Fix so that extensions like xdebug, can overload opcodes in all execution modes including goto/switch
2005-06-10 09:54:38 +00:00
Dmitry Stogov
4658513d70
fixed memory leak in bug #28972 ([] operator overflow treatment is incorrect), not the bug itself.
2005-06-07 10:21:52 +00:00
Dmitry Stogov
3d7b0bab28
Fixed memory allocation bugs related to magic object handlers (__get(), __set(),
...
...)
2005-06-03 11:16:19 +00:00
Dmitry Stogov
1a72341328
Added array type hinting. (This patch requires full re-make)
2005-05-26 13:46:17 +00:00
Dmitry Stogov
b2d28102a8
Fixed bug #30641 (Compile error: error: symbol "zend_error" is used but not defined)
2005-05-04 12:38:49 +00:00
Dmitry Stogov
8db238b075
Fixed bug #32852 (Crash with singleton and __destruct when zend.ze1_compatibility_mode = On)
...
Fixed bug #31828 (Crash with zend.ze1_compatibility_mode=On)
Fixed bug #32080 (segfault when assigning object to itself with zend.ze1_compatibility_mode=On)
2005-04-29 07:03:54 +00:00
Andrei Zmievski
4fbddd03d7
Fix certain operations to stop relying on presence of read_property and
...
write_property handlers. They may be NULL'ed out by certain objects
pretending to be pure arrays, for example. Do checks first.
2005-04-15 17:15:18 +00:00
Andrei Zmievski
992c28db75
Consolidate: call _get_zval_ptr_var() for IS_VAR case in
...
_get_zval_ptr().
2005-03-23 21:05:56 +00:00
Andi Gutmans
8838c0f860
- Two new API calls for Derick (retreive CV name and value) by Dmitry
2005-01-22 02:29:18 +00:00
Dmitry Stogov
30445fb661
Fixed bug #28444 (Cannot access undefined property for object with overloaded property access).
2005-01-18 09:05:39 +00:00
Dmitry Stogov
72d02269a9
Restore behavior of $str["str"]. (Now $str["str"] is equivalent to $str[0] again)
2005-01-14 09:01:22 +00:00
Dmitry Stogov
ce0884c287
Additional fix for fix of bug #29883
2005-01-13 08:49:06 +00:00
Dmitry Stogov
6fa37163f2
Fixed bug #31098 (isset false positive)
2005-01-12 09:18:31 +00:00
Dmitry Stogov
beaff87d50
"Undefined variable: %s" noticies were fixed to use one space
2004-12-27 13:43:26 +00:00
Dmitry Stogov
e986a1f47e
"Undefined variable: %s" noticies were fixed to be compatible with PHP_5_0
2004-12-24 08:24:55 +00:00
Moriyoshi Koizumi
ae78d7d4bf
- Checks for Darwin'ish systems that uses Mach-O, which apparently doesn't
...
support weak symbol aliasing at this time.
2004-11-03 23:05:18 +00:00
Andi Gutmans
e50a6fde11
- Commit new VM
...
- Old one is tagged as PRE_NEW_VM_GEN_PATCH
- Still doing work so more commits to come. Don't complain (yet) :)
2004-10-22 21:42:14 +00:00
Andi Gutmans
fd92acac4f
- Fix crash (MFB PHP5_0)
2004-10-22 01:55:39 +00:00
Dmitry Stogov
3d383e45dc
Fixed unset() bug that was introduced with CV optimization patch
2004-10-05 09:09:18 +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
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
8eb7503078
Stack limit will be checked while executing the script
2004-09-22 14:20:19 +00:00
Dmitry Stogov
3009a073b0
Fixed bug #29566 (foreach/string handling strangeness (crash)).
2004-09-22 07:14:26 +00:00
Dmitry Stogov
81a5af36a1
Fixed bug in fix for bug #29707
2004-09-22 06:32:19 +00:00
Andi Gutmans
d9252aa1ea
- Fix for bug #29707
2004-09-21 22:09:22 +00:00
Stanislav Malyshev
29fec3febc
Antony Dovgal's error message improvement - #27290
2004-09-13 10:41:39 +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
Stanislav Malyshev
4f68f3774c
fix crash #29893
2004-08-30 08:57:40 +00:00
Marcus Boerger
0eaa26fc31
String offset starts with 0, fix isset($str[$len])
2004-08-29 19:15:08 +00:00
Andi Gutmans
a36e7b0ab1
- Cleanup
2004-08-19 20:42:20 +00:00
Andi Gutmans
edb7c7d4f5
- Stop using garbage. Please let me know if you find any bugs resulting
...
- of this patch (very likely). (Dmitry, Andi)
2004-08-19 20:03:06 +00:00
Andi Gutmans
993f70c1d2
- Don't use magic numbers
2004-08-12 05:54:11 +00:00
Andi Gutmans
de25255b6d
- Significantly improve performance of foreach($arr as $data). (Marcus)
2004-08-12 05:41:01 +00:00
Marcus Boerger
be022a813f
More meaningfull error message
2004-08-11 20:19:49 +00:00
Marcus Boerger
51505045e6
- Fix warnings
2004-08-10 07:01:54 +00:00
Ilia Alshanetsky
d746343928
A gentler (performance wise) allocation of buffer for temp variables.
2004-08-02 02:35:01 +00:00
Andi Gutmans
d7c839d54f
- More ptr_stack optimizations and cleanups
2004-07-30 21:00:37 +00:00
Andi Gutmans
138ef9a43e
- Improve performance by inlining zend_ptr_stack_n_push(). var_args can
...
usually not be inlined by compilers.
2004-07-30 20:16:40 +00:00
Sara Golemon
d96e7a170c
Revert goto opcode
2004-07-29 17:45:31 +00:00
Sara Golemon
37acb31c1a
&tmp and label are the same thing, don't free it till we're done with it.
2004-07-29 16:49:59 +00:00
Sara Golemon
8c844fdde3
Plug some memory leaks and promote unknown label to E_ERROR.
...
If someone tries to jump to a non-existant label execution really
shouldn't try to carry on.
2004-07-29 16:36:00 +00:00
Sara Golemon
5865b3680a
Add goto operator by popular request.
2004-07-29 15:23:47 +00:00
Marcus Boerger
f5cf052225
- Fix bug #29368 : The destructor is called when an exception is thrown from the constructor
2004-07-25 17:25:44 +00:00
Marcus Boerger
5ff2111a59
Fix 0 Byte leak after alloca to emalloc change
2004-07-23 07:13:54 +00:00
Andi Gutmans
56f8195fe5
- Nuke empty_string. It is a reminanent from the time where RETURN_FALSE()
...
used to return "" and not bool(false). It's not worth keeping it because
STR_FREE() and zval_dtor() always have to check for it and it slows down
the general case. In addition, it seems that empty_string has been abused
quite a lot, and was used not only for setting zval's but generally in
PHP code instead of "", which wasn't the intention. Last but not least,
nuking empty_string should improve stability as I doubt every place
correctly checked if they are not mistakenly erealloc()'ing it or
calling efree() on it.
NOTE: Some code is probably broken. Each extension maintainer should
check and see that my changes are OK. Also, I haven't had time to touch
PECL yet. Will try and do it tomorrow.
2004-07-19 07:19:50 +00:00
Marcus Boerger
381a3b234f
Bugfix #28464 catch() does not catch exceptions by interfaces
2004-07-16 06:39:50 +00:00
Ilia Alshanetsky
a8996a8ac6
Fixed bug #29086 & #28064 (PHP crashes on extremly long scripts).
2004-07-12 17:47:29 +00:00
Sara Golemon
a4032b68c6
Ease off on severity of new error (Using Resources as array offsets)
2004-06-24 16:35:34 +00:00
Sara Golemon
56b153390b
BugFix #28879 Inconsistent behavior between explicit and implicit array creation.
...
Changes:
Throw E_WARNING "Illegal offset type" when explicitly creating
array elements with objects, arrays, or resorces as indexes.
This matches implicit creation w/ obj/arr indices.
Throw E_WARNING "Resource ID#%ld used as offset, casting to integer (%ld)"
when implicitly creating array with resource as index. (BC)
2004-06-23 23:20:44 +00:00
Sara Golemon
2f7c5d30b5
Another typo in converting array index doubles to long.
2004-06-18 18:33:46 +00:00
Stanislav Malyshev
176f6d8e6e
fix incdec - make value's refcount non-zero when passing to
...
write_property - otherwise __set caller cleanup could kill it.
2004-06-02 12:48:19 +00:00
Marcus Boerger
0ef420a71e
Prevent possible problems with illegal properties
2004-05-28 08:55:10 +00:00
Andi Gutmans
bca3e30484
- Fix problem with exceptions returning from include(). (Dmitry)
2004-05-27 11:59:58 +00:00
Sara Golemon
b094db390e
Bugfix#28404 When type is double we need to access dval, not lval
2004-05-18 00:04:22 +00:00
Stanislav Malyshev
239ae7b5fc
Fix bug #27876
2004-04-29 09:47:29 +00:00
Marcus Boerger
a455d7846d
Handle failure in get_current_data
2004-04-15 21:32:34 +00:00
Ilia Alshanetsky
962c8cc9ef
Fixed reversed condition for error reporting.
2004-04-01 22:05:35 +00:00
Dmitry Stogov
d00b6c7c99
Fixed BUG in zend_post_incdec_property
2004-03-31 15:16:00 +00:00
Sebastian Bergmann
c29e9277d0
-clonning+cloning
2004-03-29 15:20:50 +00:00
Dmitry Stogov
75d1e4ca7d
Implicit clonning strict warning was added for ze1_compatibility_mode
2004-03-29 15:00:31 +00:00
Ilia Alshanetsky
62c80d5e6e
Fixed bug #27731 (error_reporting() inside @ block fails to set
...
error_reporting level).
2004-03-29 00:50:52 +00:00
Stanislav Malyshev
9be3c9388b
- call set handler if assigning to object having this handler
...
- cleanup: use macros to access object internal vars
2004-03-28 14:57:29 +00:00
Andi Gutmans
43d04ee291
- Fix build (thanks to Timm)
2004-03-26 00:26:19 +00:00
Stanislav Malyshev
7a98f60e1b
no need to use result for RECV's - as in PHP4
2004-03-25 14:03:34 +00:00
Stanislav Malyshev
3c3dbc8873
Use get/set handlers for increment.decrement ops on objects
2004-03-25 13:03:04 +00:00
Dmitry Stogov
ec53815b0f
Object cloning in ze1 compatibility mode (zend.ze1_compatibility_mode) was reimplemented (Dmitry, Andi)
2004-03-24 10:55:04 +00:00
Andi Gutmans
94dc9af5a0
- Remove whitespace
2004-03-22 11:16:24 +00:00
Andi Gutmans
4ccca568bb
- Improve consistency
2004-03-21 21:29:17 +00:00
Stanislav Malyshev
bd9b600c3c
API change for read_property:
...
instead of bool silent it now gets fetch type
This can be used for creating proxy objects for write contexts
2004-03-21 18:07:27 +00:00
Andi Gutmans
f0b5eeb17b
- Nuke unused code
2004-03-21 17:48:51 +00:00
Zeev Suraski
b8275175ff
Fix possible data corruption with __set()
2004-03-18 14:03:58 +00:00
Stanislav Malyshev
f52edc19a7
Improve error message - on E_STRICT, method is actually called,
...
so the error shouldn't say it cannot be called.
2004-03-18 13:28:05 +00:00
Andi Gutmans
5569ad0626
- Fix tiny bug (one of the reasons we can't support __toString() for
...
- regular objects).
2004-03-17 16:18:24 +00:00
Andi Gutmans
ccb515afc7
- Fixed problem with __toString(). Due to the engine's architecture it is
...
- currently not possible to call __toString() anywhere besides print & eval.
- Follow up will be on internals@
2004-03-17 15:48:49 +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
Marcus Boerger
50ee116f08
Clearify the different method/class flags (as discussed with Andi).
2004-03-09 16:38:37 +00:00
Andi Gutmans
0fc9d5861d
- Nuke unused code.
2004-03-09 15:27:39 +00:00
Marcus Boerger
6b0f57ee50
Rename hasMore() to valid() as discussed. (Part II)
2004-03-08 18:05:41 +00:00