cvs: php4 /main output.c
| From: | Ilia Alshanetsky | Date: | Mon, 27 Jan 2003 17:22:23 +0000 |
| Subject: | cvs: php4 /main output.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-18202@lists.php.net to get a copy of this message | ||
iliaa Mon Jan 27 12:22:23 2003 EDT
Modified files:
/php4/main output.c
Log:
Removed pointless checks.
Index: php4/main/output.c
diff -u php4/main/output.c:1.145 php4/main/output.c:1.146
--- php4/main/output.c:1.145 Tue Dec 31 10:58:52 2002
+++ php4/main/output.c Mon Jan 27 12:22:22 2003
@@ -18,7 +18,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: output.c,v 1.145 2002/12/31 15:58:52 sebastian Exp $ */
+/* $Id: output.c,v 1.146 2003/01/27 17:22:22 iliaa Exp $ */
#include "php.h"
#include "ext/standard/head.h"
@@ -527,10 +527,7 @@
RETURN_FALSE;
}
- if (array_init(return_value) == FAILURE) {
- php_error_docref("ref.outcontrol" TSRMLS_CC, E_ERROR, "Unable to initialize
array");
- RETURN_FALSE;
- }
+ array_init(return_value);
if (OG(ob_nesting_level)) {
if (OG(ob_nesting_level)>1) {
zend_stack_apply_with_argument(&OG(ob_buffers), ZEND_STACK_APPLY_BOTTOMUP, (int (*)(void
*element, void *)) php_ob_list_each, return_value);
@@ -913,9 +910,7 @@
zval *elem;
MAKE_STD_ZVAL(elem);
- if (array_init(elem) == FAILURE) {
- return FAILURE;
- }
+ array_init(elem);
add_assoc_long(elem, "chunk_size", ob_buffer->chunk_size);
if (!ob_buffer->chunk_size) {
@@ -949,9 +944,7 @@
if (zend_parse_parameters(argc TSRMLS_CC, "|b", &full_status) == FAILURE )
RETURN_FALSE;
- if (array_init(return_value) == FAILURE) {
- RETURN_FALSE;
- }
+ array_init(return_value);
if (full_status) {
if (OG(ob_nesting_level)>1) {