Commit Graph

128 Commits

Author SHA1 Message Date
Antony Dovgal
4343311203 get rid of more "might be uninitialized" warnings 2006-07-12 21:14:11 +00:00
Antony Dovgal
527f93f25d make sure return_value_used is always initialized 2006-07-12 21:07:07 +00:00
Andrei Zmievski
ed77c07a35 Commit Sara's patch for supporting filesystem enccoding in
include/require.
2006-07-12 17:04:13 +00:00
Dmitry Stogov
b52137a828 Fixed memory leak in case of exception in iterator callbacks in 'foreach(new Iterator()...' (spl/tests/iterator_047.phpt). 2006-07-11 08:52:44 +00:00
Sara Golemon
aee52fa3ea Silence FETCH_OBJ_IS / undefined notices 2006-07-06 15:28:05 +00:00
Stefan Esser
08e355e39e Added hook for compile_string() 2006-06-13 12:56:20 +00:00
Dmitry Stogov
4ef9b25370 Proper fix for bug #37707 ("clone $x" must call __clone() enven if result value is not used) 2006-06-08 08:56:47 +00:00
Dmitry Stogov
de90af4ddc Wrap "wrong" unreachable code with "#if 0" 2006-06-08 08:38:11 +00:00
Ilia Alshanetsky
72a4a1362a MFB: Fixed bug #37707 clone without assigning leaks memory 2006-06-07 13:43:13 +00:00
Marcus Boerger
09cbc2479e - Regenerated after zend_vm_def.h change 2006-06-07 09:25:04 +00:00
Johannes Schlüter
80cff030da - Fix printf modifier 2006-05-28 19:45:02 +00:00
Marcus Boerger
a871b842f8 - Fix warning 2006-05-20 15:38:36 +00:00
Dmitry Stogov
fb1a172cae Optimized require_once/include_once (eliminated fopen() on second usage) 2006-05-15 15:31:50 +00:00
Marcus Boerger
d588eb2012 - Drop a few superflous if conditions (now the generated file) 2006-05-11 21:12:27 +00:00
Dmitry Stogov
30ff22ca47 Fixed bug #37251 (deadlock when custom error handler is to catch array type hint error). 2006-05-05 08:04:55 +00:00
Dmitry Stogov
ec12098c3b Fixed bug #37046 (foreach breaks static scope) 2006-04-12 11:38:09 +00:00
Marcus Boerger
509c9d44e2 - Iterators from overloaded objects are allowed to not have keys... 2006-04-10 23:15:26 +00:00
Dmitry Stogov
ea9b9502e9 typo 2006-03-16 15:42:54 +00:00
Dmitry Stogov
89a1a4cbc4 Return "new" by reference now throws an E_STRICT error 2006-03-16 15:35:26 +00:00
Dmitry Stogov
7c0e534157 Dropped zend.ze1_compatibility_mode 2006-03-16 10:33:23 +00:00
Dmitry Stogov
d3e5691b41 Added E_STRICT warning in case of calling non-static method from incompatible context (this feature is staying for BC with php-4) 2006-03-15 11:15:20 +00:00
Dmitry Stogov
a623645b6f Fixed "zend_vm_gen.php --without-specializer" 2006-03-15 08:06:51 +00:00
Dmitry Stogov
bc9eaa011e Fixed compilation error (Rob) 2006-03-10 16:35:57 +00:00
Dmitry Stogov
f8576f84dc Implemented "jump label" operator (limited "goto") 2006-03-10 08:29:43 +00:00
Dmitry Stogov
dec6f749d9 Regenerated 2006-03-03 16:47:55 +00:00
Dmitry Stogov
e3b7f3fd0d Unicode support: MS Visual C compatibility 2006-02-26 11:57:14 +00:00
Marcus Boerger
44b0637bcd - Deprecation severity shall be E_STRICT (as commented by ilia)
# Actually this conforms with other messages
2006-02-25 17:43:12 +00:00
Dmitry Stogov
0f1209ab3d Portable unicode string API:
- use the same type (int) for zval.value.usr.len and zval.value.str.len
  - use union "zstr" as char*/UChar* mixture instead of void*
  - Z_UNISTR() and Z_UNILEN() no longer check for Z_TYPE()
  - nuke int32_t from ZE (not finisned)
2006-02-21 20:12:43 +00:00
Dmitry Stogov
2e5d0a3a9d WS 2006-02-21 08:00:39 +00:00
Marcus Boerger
3b3e006e33 - Add deprecation flag and message 2006-02-20 20:00:46 +00:00
Dmitry Stogov
b424a32610 Preparation for portable string API (use macroses to access zval). 2006-02-20 19:03:43 +00:00
Marcus Boerger
bc994b981f - Fix integrated iterator index 2006-02-18 17:37:54 +00:00
Dmitry Stogov
47c90c571f Fixed bug #36303 (foreach on error_zval produces segfault) 2006-02-06 11:46:12 +00:00
Marcus Boerger
c8d78028b5 - Disallow foreach($v as &$ref) when $v is an object that implements
interface Iterator. The signature of Iterator::current() doesn't allow
  that. Maybe ppl also want IteratorByReference or similar. Unfortunatley
  this comes with an API change but there is no easier way.
2006-02-05 23:26:55 +00:00
Dmitry Stogov
227295a4f1 Unicode stuff is changed according to decision maden on PDM.
Now IS_BINRAY data type is removed and IS_STRING starts behave as IS_BINARY in unicode mode. IS_STRING is incompatible with IS_UNICODE, so ALL functions should be improved to support unicode mode.
2006-01-17 12:18:53 +00:00
Andi Gutmans
5de7cc3194 - Update copyright notices to 2006 2006-01-04 23:54:12 +00:00
Dmitry Stogov
a139e19fe3 Fixed bug #35437 (Segfault or Invalid Opcode 137/1/4) 2005-12-01 12:51:19 +00:00
Dmitry Stogov
d409c5e347 Fixed bug #35470 (Assigning global using variable name from array doesn't function) 2005-11-30 10:10:32 +00:00
Dmitry Stogov
4192685b64 Fixed bug #35393 (changing static protected members from outside the class, one more reference issue) 2005-11-28 14:33:44 +00:00
Dmitry Stogov
97190ee606 Removed support for continue and break operators with non-constant operands 2005-11-17 08:27:25 +00:00
Dmitry Stogov
372d59b648 Fixed bug #35017 (Exception thrown in error handler may cause unexpected behavior) 2005-10-31 19:29:48 +00:00
Dmitry Stogov
3c6c6d2a9a $id:$ tatgs are removed from generated files to avoid committing of Zend/zend_vm_opcodes.h without real changes. 2005-10-28 06:05:41 +00:00
Dmitry Stogov
804e3b4f5b Fixed SIGSEGV 2005-10-27 19:25:07 +00:00
Dmitry Stogov
81b506bdd0 Removed unnecesary local variable 2005-10-20 11:31:59 +00:00
Dmitry Stogov
2507a54429 Fixed bug #31177 (menory leaks and corruption because of incorrect refcounting) 2005-10-20 07:23:58 +00:00
Dmitry Stogov
98294fbf3f Fixed bug #34786 (2 @ results in change to error_reporting() to random value) 2005-10-10 10:54:45 +00:00
Dmitry Stogov
f94344d7fd Changed __toString() behavior to call it in all necessary places 2005-09-27 07:59:18 +00:00
Antony Dovgal
b97af6c1c0 MF5.1:
- store current value of error_reporting only if it's not stored yet
- reset old_error_reporting to NULL only it points to the tmp_var at current opline
2005-09-23 09:38:37 +00:00
Dmitry Stogov
14a0d82f42 MFH 2005-09-23 07:16:06 +00:00
Antony Dovgal
78fe744753 fix #33771 (error_reporting falls to 0 when @ was used inside try/catch block) 2005-09-22 19:03:04 +00:00