]> granicus.if.org Git - php/commitdiff
Make isapi more compatible with apache sapis as far as the creation
authorIlia Alshanetsky <iliaa@php.net>
Thu, 13 May 2004 17:21:39 +0000 (17:21 +0000)
committerIlia Alshanetsky <iliaa@php.net>
Thu, 13 May 2004 17:21:39 +0000 (17:21 +0000)
$_COOKIE super-global and various $_SERVER values.

sapi/isapi/php5isapi.c

index 84f2d67cf7918bbad0ee7f92baf75d6d289d80b2..5cf8ac1a7d710108bb505ab08c3f4a0f068c9f93 100644 (file)
@@ -354,7 +354,7 @@ static char *sapi_isapi_read_cookies(TSRMLS_D)
                        efree(tmp_variable_buf);
                }
        }
-       return NULL;
+       return "";
 }
 
 
@@ -567,6 +567,8 @@ static void sapi_isapi_register_server_variables2(char **server_variables, LPEXT
                        } else {
                                efree(variable_buf);
                        }
+               } else { /* for compatibility with Apache SAPIs */
+                       php_register_variable(*p, "", track_vars_array TSRMLS_CC);
                }
                p++;
        }