cvs: php4 /ext/standard streamsfuncs.c
| From: | Sara Golemon | Date: | Tue, 17 Jun 2003 18:38:56 +0000 |
| Subject: | cvs: php4 /ext/standard streamsfuncs.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-21839@lists.php.net to get a copy of this message | ||
pollita Tue Jun 17 14:38:56 2003 EDT
Modified files:
/php4/ext/standard streamsfuncs.c
Log:
No need to allocate a hashtable when return_value is just going to be overwriten
Index: php4/ext/standard/streamsfuncs.c
diff -u php4/ext/standard/streamsfuncs.c:1.17 php4/ext/standard/streamsfuncs.c:1.18
--- php4/ext/standard/streamsfuncs.c:1.17 Mon Jun 16 14:19:14 2003
+++ php4/ext/standard/streamsfuncs.c Tue Jun 17 14:38:56 2003
@@ -17,7 +17,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: streamsfuncs.c,v 1.17 2003/06/16 18:19:14 pollita Exp $ */
+/* $Id: streamsfuncs.c,v 1.18 2003/06/17 18:38:56 pollita Exp $ */
#include "php.h"
#include "php_globals.h"
@@ -726,7 +726,6 @@
context = decode_context_param(zcontext TSRMLS_CC);
ZEND_VERIFY_RESOURCE(context);
- array_init(return_value);
*return_value = *context->options;
zval_copy_ctor(return_value);