changelog Fri Apr 7 05:31:53 2006 UTC
Modified files:
/ZendEngine2 ChangeLog
Log:
ChangeLog update
http://cvs.php.net/viewcvs.cgi/ZendEngine2/ChangeLog?r1=1.893&r2=1.894&diff_format=u
Index: ZendEngine2/ChangeLog
diff -u ZendEngine2/ChangeLog:1.893 ZendEngine2/ChangeLog:1.894
--- ZendEngine2/ChangeLog:1.893 Thu Apr 6 05:31:50 2006
+++ ZendEngine2/ChangeLog Fri Apr 7 05:31:53 2006
@@ -1,3 +1,55 @@
+2006-04-06 Andrei Zmievski <[EMAIL PROTECTED]>
+
+ * zend_arg_defs.c
+ zend_modules.h:
+ MFB
+
+ * (PHP_5_1)
+ zend_arg_defs.c
+ zend_modules.h:
+ Fix a bug that would not fill in the fifth argument to preg_replace()
+ properly, if the variable was not declared previously.
+
+2006-04-06 Sara Golemon <[EMAIL PROTECTED]>
+
+ * zend_API.h:
+ Overload 'duplicate' arg as applied to:
+ add_((next_)?index|assoc)_(ascii|rt)_stringl?(_ex)?
+ and
+ (ZVAL|RETVAL|RETURN)_(ASCII|RT|U)_STRINGL?
+
+
+ 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-05 Antony Dovgal <[EMAIL PROTECTED]>
* zend_builtin_functions.c:
@@ -13021,7 +13073,7 @@
2003-06-10 Jani Taskinen <[EMAIL PROTECTED]>
* zend_multiply.h:
- - Missing $Id: ChangeLog,v 1.893 2006/04/06 05:31:50 changelog Exp $ tag
+ - Missing $Id: ChangeLog,v 1.894 2006/04/07 05:31:53 changelog Exp $ tag
2003-06-10 James Cox <[EMAIL PROTECTED]>
@@ -14745,7 +14797,7 @@
zend_types.h
zend_variables.c
zend_variables.h:
- - Added some missing CVS $Id: ChangeLog,v 1.893 2006/04/06 05:31:50
changelog Exp $ tags, headers and footers.
+ - Added some missing CVS $Id: ChangeLog,v 1.894 2006/04/07 05:31:53
changelog Exp $ tags, headers and footers.
2003-01-30 Ilia Alshanetsky <[EMAIL PROTECTED]>