[PHP-CVS] svn: /php/php-src/branches/PHP_5_3/sapi/litespeed/ lsapi_main.c

2011-12-31 Thread George Wang
gwangSat, 31 Dec 2011 18:15:06 +

Revision: http://svn.php.net/viewvc?view=revisionrevision=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.c2011-12-31 
15:23:05 UTC (rev 321615)
+++ php/php-src/branches/PHP_5_3/sapi/litespeed/lsapi_main.c2011-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

[PHP-CVS] svn: /php/php-src/branches/PHP_5_4/sapi/litespeed/ lsapi_main.c

2011-12-31 Thread George Wang
gwangSat, 31 Dec 2011 18:15:22 +

Revision: http://svn.php.net/viewvc?view=revisionrevision=321617

Log:
fixed a crash in cli mode when apache_request_headers() is called

Changed paths:
U   php/php-src/branches/PHP_5_4/sapi/litespeed/lsapi_main.c

Modified: php/php-src/branches/PHP_5_4/sapi/litespeed/lsapi_main.c
===
--- php/php-src/branches/PHP_5_4/sapi/litespeed/lsapi_main.c2011-12-31 
18:15:06 UTC (rev 321616)
+++ php/php-src/branches/PHP_5_4/sapi/litespeed/lsapi_main.c2011-12-31 
18:15:22 UTC (rev 321617)
@@ -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