Marcus Boerger
36b3b8ef63
- Fix coverity issue 49: ce might be forwarded as NULL without an exception
...
being thrown in case the Zend API is being used wrong (in custom exts for
instance).
2006-04-10 22:37:55 +00:00
Dmitry Stogov
68dd370e96
Fixed possible crash in interactive mode
2006-04-10 12:27:17 +00:00
ca88b09b5e
ChangeLog update
2006-04-08 05:31:55 +00:00
Dmitry Stogov
ee4fb4c41d
- Fixed storing NULL pointers in HashTable
...
- Optimized zend_hash_reverse_apply()
2006-04-07 10:05:17 +00:00
14ba1088ad
ChangeLog update
2006-04-07 05:31:53 +00:00
Andrei Zmievski
f37190dc57
MFB
2006-04-06 21:16:28 +00:00
Sara Golemon
5f5faedf18
Overload 'duplicate' arg as applied to:
...
add_((next_)?index|assoc)_(ascii|rt)_stringl?(_ex)?
and
(ZVAL|RETVAL|RETURN)_(ASCII|RT|U)_STRINGL?
#define ZSTR_DUPLICATE (1<<0)
#define ZSTR_AUTOFREE (1<<1)
Duplicate keeps traditional value of '1', additional bit '2' tells
unicode mode conversion to automatically free the original string
in order to avoid leaks due to conversion on a value otherwise being
"given" to the engine.
/* Uses s as-is for non-unicode, or frees s after converting to unicode */
{
char *s = estrdup("Hello");
ZVAL_RT_STRING(pzv, s, ZSTR_AUTOFREE);
}
/* Duplicates for non-unicode, or converts (but doesn't free original) */
{
char *s = "Hello";
ZVAL_RT_STRING(pzv, s, ZSTR_DUPLICATE);
}
/* Uses as-is for non-unicode, or converts (but doesn't free original) */
{
char *s = "Hello";
zval zv;
ZVAL_RT_STRING(&zv, s, 0);
/* use zv for some temporary purpose */
/* It's now necessary to manually free this generated value */
if (UG(unicode)) {
zval_dtor(&zv);
}
}
2006-04-06 18:02:39 +00:00
282807267d
ChangeLog update
2006-04-06 05:31:50 +00:00
Antony Dovgal
3305bba32b
MF51: fix #36944 (strncmp & strncasecmp do not return false on negative string length)
2006-04-05 11:36:28 +00:00
c3c95c61fb
ChangeLog update
2006-04-01 06:31:49 +00:00
Sara Golemon
fd606a8d78
Add API hooks and unicode.filesystem_encoding for handling unicode
...
conversions of filename entries.
Normal path conversions will simply use this converter,
Certain other protocols (such as http) which specify a
required character set (utf8), may override the conversion
by defining a path_encode() and/or path_decode() wrapper ops method.
2006-03-31 22:51:37 +00:00
8eb12d6116
ChangeLog update
2006-03-31 06:31:50 +00:00
Antony Dovgal
eea22a0ffa
MF51: fix compilation on AIX
2006-03-30 21:39:15 +00:00
Dmitry Stogov
01cb2b07ed
Unicode support
2006-03-30 08:15:18 +00:00
66287d9fb6
ChangeLog update
2006-03-30 06:31:53 +00:00
Antony Dovgal
6a53a49c8b
MF51: fix bug #36898 (__set() leaks in classes extending internal ones)
...
Added:
ZEND_API void zend_object_std_init(zend_object *object, zend_class_entry *ce TSRMLS_DC)
ZEND_API void zend_object_std_dtor(zend_object *object TSRMLS_DC)
2006-03-29 15:08:52 +00:00
39392cce19
ChangeLog update
2006-03-29 06:31:49 +00:00
Antony Dovgal
e98f9777db
initialize bucket #0 with nulls
2006-03-28 21:58:21 +00:00
Antony Dovgal
f34d655334
MF51: fix #36897 (debug_print_backtrace() doesn't return void but array(0) {})
2006-03-28 19:43:37 +00:00
25a73301a5
ChangeLog update
2006-03-28 06:31:49 +00:00
Andrei Zmievski
a65a781b16
Note
2006-03-28 06:30:47 +00:00
Antony Dovgal
31123e33b3
MF51: fix #36878 (error messages are printed even though an exception has been thrown)
2006-03-27 22:07:50 +00:00
Andrei Zmievski
978c58ad78
Add UTODO.
2006-03-27 19:15:58 +00:00
Andrei Zmievski
443f9d0844
Mark with UTODO instead of FIXME.
2006-03-27 17:34:06 +00:00
Dmitry Stogov
0e114d4295
Fixed test
2006-03-27 13:42:04 +00:00
Dmitry Stogov
ba72ff3fcc
Fixed bug during function/class declaration in unicode mode
2006-03-27 09:44:03 +00:00
Dmitry Stogov
d7491a3e7e
Fixed meory leak in case of unknown pragma
2006-03-27 08:09:08 +00:00
Dmitry Stogov
3cffaf78a3
Better but incomplete fix for bug #36840
2006-03-27 07:35:05 +00:00
03b5fefd39
ChangeLog update
2006-03-27 06:31:51 +00:00
Dmitry Stogov
bdfa3b1d36
Fixed ZTS build
2006-03-27 06:02:42 +00:00
Andrei Zmievski
c2bca6239d
Fix a case where we could have an encoding conversion exception thrown
...
while building exception trace args!
2006-03-27 03:47:50 +00:00
Andrei Zmievski
90d03ff1e2
Use (unsigned char) to make sure that only the control chars are
...
replaced with '?';
2006-03-27 03:41:39 +00:00
Andrei Zmievski
19e6c92ad0
Skip BOM for UTF-16/32 converters when setting subst char.
2006-03-27 03:17:49 +00:00
Andrei Zmievski
29552a6472
Some functions may want to accept only Unicode or binary strings,
...
without having auto-conversion from the other string type. Add 'U' and
'S' specifiers for this. Also, remove traces of 'native' strings.
2006-03-27 02:52:06 +00:00
Andrei Zmievski
1709428494
Implement to-Unicode conversion error behavior. Note the adjusted APIs.
2006-03-26 06:19:24 +00:00
Andrei Zmievski
930bde5897
* Remove unicode.from_error_mode and unicode.from_subst_char from INI
...
settings.
* Add unicode_set_error_mode() and unicode_set_subst_char() functions to
manipulate these global settings.
2006-03-26 01:48:33 +00:00
6702a305a2
ChangeLog update
2006-03-25 06:31:49 +00:00
Andrei Zmievski
de2f7f1d66
Hey! Don't remove vim modeline completely! :)
2006-03-24 16:45:18 +00:00
Antony Dovgal
792a2f6e65
whitespaces -> tabs
...
no other changes done
2006-03-24 10:25:50 +00:00
Dmitry Stogov
4767e90a47
Fixed bug #36840 (Memory leak if cast operator throws an exception that is caught)
2006-03-24 10:11:49 +00:00
Andrei Zmievski
51977c926c
Support warning/exceptions flag for conversion errors.
2006-03-24 07:38:07 +00:00
6237738145
ChangeLog update
2006-03-24 06:31:51 +00:00
Andrei Zmievski
1c09ef8e37
Update conversion error behavior and add some new modes.
...
# The various escape modes are what ICU calls them. We may want to come
# up with different names for UNICODE/ICU/JAVA ones..
2006-03-23 22:00:42 +00:00
Andrei Zmievski
a27b78c2d2
Add (binary) cast operator.
2006-03-23 21:54:00 +00:00
Andrei Zmievski
b5221e4dd9
Allow conversion between binary/Unicode strings (based on
...
runtime_encoding setting).
2006-03-23 21:52:49 +00:00
Marcus Boerger
123df34265
- Initialize callable_name if requested
2006-03-23 13:09:28 +00:00
Antony Dovgal
88605a22ff
implement correct fix for segfault on 64bit platform
2006-03-23 09:44:30 +00:00
cab8eea2f8
ChangeLog update
2006-03-23 06:31:57 +00:00
Antony Dovgal
763483d18b
don't segfault on 64bit platforms
2006-03-22 19:36:10 +00:00
a6bcfeccf7
ChangeLog update
2006-03-21 06:31:49 +00:00
Dmitry Stogov
d2fd87526f
Removed unreachable code
2006-03-20 15:12:54 +00:00
49f7b6605c
ChangeLog update
2006-03-18 06:31:51 +00:00
Dmitry Stogov
51f7ee02c8
FIX: For some reason SIGSEGV handler wasn't set, but was restoring. Now all SIGS
...
EGV related code is commented.
2006-03-17 08:47:54 +00:00
Dmitry Stogov
53e1f2adfb
Optimization of module unloading (temporary modules can be only in the end)
2006-03-17 08:34:34 +00:00
8ec6d16867
ChangeLog update
2006-03-17 06:31:49 +00:00
Dmitry Stogov
ea9b9502e9
typo
2006-03-16 15:42:54 +00:00
Dmitry Stogov
3510eda470
ws
2006-03-16 15:38:29 +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
dcd1ccd725
Added E_STRICT to E_ALL
2006-03-16 12:12:31 +00:00
Dmitry Stogov
9d7ca01c8b
Dropped allow_call_time_pass_reference, the error is maden E_STRICT.
2006-03-16 11:32:00 +00:00
Dmitry Stogov
7c0e534157
Dropped zend.ze1_compatibility_mode
2006-03-16 10:33:23 +00:00
Dmitry Stogov
22055cb8fd
Dropped register_long_arrays, added E_CORE for all dropped setting
2006-03-16 09:44:42 +00:00
a6ed0cb3e0
ChangeLog update
2006-03-16 06:31:47 +00:00
Dmitry Stogov
18d6d9d633
Fixed zend_u_strtod() that returned uninitialized value in case of empty string
2006-03-15 13:12:32 +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
d51599dfcd
Eliminated run-time constant fetching for TRUE, FALSE and NULL
2006-03-15 09:04:48 +00:00
Dmitry Stogov
a623645b6f
Fixed "zend_vm_gen.php --without-specializer"
2006-03-15 08:06:51 +00:00
d06e1f49b6
ChangeLog update
2006-03-15 06:31:57 +00:00
Dmitry Stogov
663ba73ca2
Fixed bug #36568 (memory_limit setting on win32 has no effect)
2006-03-14 14:19:19 +00:00
Dmitry Stogov
72acb65b24
zend_hash_apply() doesn't use ZEND_HASH_APPLY_... macros
2006-03-14 11:24:30 +00:00
Dmitry Stogov
b7933917f6
"jump" -> "goto"
2006-03-14 11:20:19 +00:00
79f91078ef
ChangeLog update
2006-03-14 06:31:48 +00:00
Dmitry Stogov
78aed20223
Optimized cleanup loops on request shutdown
2006-03-13 11:13:55 +00:00
29bc693710
ChangeLog update
2006-03-13 06:31:48 +00:00
Ilia Alshanetsky
fe2842d21b
MFB51: As per agreement during PDM, remove the E_STRICT deprecation notice
...
from "var".
2006-03-12 16:53:41 +00:00
e93bc50c22
ChangeLog update
2006-03-11 06:31:48 +00:00
Dmitry Stogov
bc9eaa011e
Fixed compilation error (Rob)
2006-03-10 16:35:57 +00:00
Dmitry Stogov
f0b9848949
Added RETVAL_EMPTRY_TEXT() and RETURN_EMPTY_TEXT() macroses
2006-03-10 16:35:21 +00:00
Dmitry Stogov
f8576f84dc
Implemented "jump label" operator (limited "goto")
2006-03-10 08:29:43 +00:00
689eea9c3c
ChangeLog update
2006-03-08 06:31:47 +00:00
Dmitry Stogov
432cae3222
Reverted "break label"
2006-03-07 08:43:21 +00:00
Andrei Zmievski
9840a792ee
*** empty log message ***
2006-03-07 08:33:46 +00:00
Derick Rethans
6709a6bfc9
- Make this compile again
2006-03-07 07:58:56 +00:00
7453c27089
ChangeLog update
2006-03-07 06:31:50 +00:00
Andrei Zmievski
25d1f03526
Mark some functions as Unicode-safe and adjust UTODO notices for others.
2006-03-07 04:30:15 +00:00
Sara Golemon
cc523d42cb
Remove register_globals regression test for Pierre
2006-03-07 00:26:27 +00:00
Dmitry Stogov
bc091138a5
fixed compatibility with ext/hash
2006-03-06 09:58:27 +00:00
1af22d5ab8
ChangeLog update
2006-03-06 06:31:47 +00:00
Marcus Boerger
24618f2b3b
- Fix comment, too
2006-03-05 18:32:21 +00:00
Marcus Boerger
b0f461e9d9
- Fix Bug #34019 by popular demand: Implementing interface with a
...
__construct method strange behaviour
2006-03-05 18:23:56 +00:00
Marcus Boerger
fd2b76d505
- Add missing function for completeness
2006-03-05 16:09:45 +00:00
ae47c701b8
ChangeLog update
2006-03-05 06:31:46 +00:00
Johannes Schlüter
5575afef48
- Separate ZEND_METHOD from ZEND_FUNCTION
2006-03-04 14:37:50 +00:00
164ee5c2f4
ChangeLog update
2006-03-04 06:31:46 +00:00
Andrei Zmievski
ba0b3868ee
Clean up after Marcus.
2006-03-03 23:23:17 +00:00
Marcus Boerger
03be54de37
- Make unicode handling portable (noted by andrei)
...
# Actually we should provide much more such unicode strings that we often
# use like 'parent', 'self' and so on.
2006-03-03 23:20:29 +00:00
Marcus Boerger
5d77a462f6
- As expected (but told otherwise) unicode strings indeed need to be
...
terminated by two \0.
2006-03-03 22:37:47 +00:00
Marcus Boerger
a9ea7e81c6
- Fix issue with uncaught exceptions in unicode mode
2006-03-03 21:58:56 +00:00
Marcus Boerger
4690c282a0
- Add new tests
2006-03-03 18:07:24 +00:00
Dmitry Stogov
dec6f749d9
Regenerated
2006-03-03 16:47:55 +00:00