]> granicus.if.org Git - php/commitdiff
- Updated the Apache 1.3 sapi as add_assoc_string's signature has been changed.
authorDerick Rethans <derick@php.net>
Wed, 27 Sep 2006 18:18:59 +0000 (18:18 +0000)
committerDerick Rethans <derick@php.net>
Wed, 27 Sep 2006 18:18:59 +0000 (18:18 +0000)
sapi/apache/php_apache.c

index 98eaad86a4f6df5de4ac66cbe9dd2b610576df67..8452c18ecca8888dfd79d8629034ea1c91b996ff 100644 (file)
@@ -361,9 +361,7 @@ PHP_FUNCTION(apache_request_headers)
                if (!tenv[i].key) {
                        continue;
                }
-               if (add_assoc_string(return_value, tenv[i].key, (tenv[i].val==NULL) ? "" : tenv[i].val, 1)==FAILURE) {
-                       RETURN_FALSE;
-               }
+               add_assoc_string(return_value, tenv[i].key, (tenv[i].val==NULL) ? "" : tenv[i].val, 1);
     }
 }
 /* }}} */
@@ -381,9 +379,7 @@ PHP_FUNCTION(apache_response_headers)
     tenv = (table_entry *)env_arr->elts;
     for (i = 0; i < env_arr->nelts; ++i) {
                if (!tenv[i].key) continue;
-               if (add_assoc_string(return_value, tenv[i].key, (tenv[i].val==NULL) ? "" : tenv[i].val, 1)==FAILURE) {
-                       RETURN_FALSE;
-               }
+               add_assoc_string(return_value, tenv[i].key, (tenv[i].val==NULL) ? "" : tenv[i].val, 1);
        }
 }
 /* }}} */