gwang                                    Sat, 31 Dec 2011 18:15:22 +0000

Revision: http://svn.php.net/viewvc?view=revision&revision=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.c    2011-12-31 
18:15:06 UTC (rev 321616)
+++ php/php-src/branches/PHP_5_4/sapi/litespeed/lsapi_main.c    2011-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

Reply via email to