gwang Sat, 31 Dec 2011 18:15:06 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=321616
Log:
fixed a crash in cli mode when apache_request_headers() is called
Changed paths:
U php/php-src/branches/PHP_5_3/sapi/litespeed/lsapi_main.c
Modified: php/php-src/branches/PHP_5_3/sapi/litespeed/lsapi_main.c
===================================================================
--- php/php-src/branches/PHP_5_3/sapi/litespeed/lsapi_main.c 2011-12-31
15:23:05 UTC (rev 321615)
+++ php/php-src/branches/PHP_5_3/sapi/litespeed/lsapi_main.c 2011-12-31
18:15:06 UTC (rev 321616)
@@ -1055,7 +1055,8 @@
}
array_init(return_value);
- LSAPI_ForeachOrgHeader( add_associate_array, return_value );
+ if ( lsapi_mode )
+ LSAPI_ForeachOrgHeader( add_associate_array, return_value );
}
/* }}} */
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php