laruence                                 Mon, 24 Oct 2011 03:28:59 +0000

Revision: http://svn.php.net/viewvc?view=revision&revision=318355

Log:
Fixed PATH_INFO of /index.php/foo/bar

Changed paths:
    U   php/php-src/branches/PHP_5_4/sapi/cli/php_cli_server.c
    U   php/php-src/trunk/sapi/cli/php_cli_server.c

Modified: php/php-src/branches/PHP_5_4/sapi/cli/php_cli_server.c
===================================================================
--- php/php-src/branches/PHP_5_4/sapi/cli/php_cli_server.c      2011-10-24 
00:36:56 UTC (rev 318354)
+++ php/php-src/branches/PHP_5_4/sapi/cli/php_cli_server.c      2011-10-24 
03:28:59 UTC (rev 318355)
@@ -1296,12 +1296,13 @@
                                        pefree(buf, 1);
                                        return;
                                }
+                               if (is_static_file) {
+                                       pefree(buf, 1);
+                                       return;
+                               }
                        }
                        break; /* regular file */
-               } else if (is_static_file) {
-                       pefree(buf, 1);
-                       return;
-               }
+               }
                if (prev_patch) {
                        pefree(prev_patch, 1);
                        *q = DEFAULT_SLASH;

Modified: php/php-src/trunk/sapi/cli/php_cli_server.c
===================================================================
--- php/php-src/trunk/sapi/cli/php_cli_server.c 2011-10-24 00:36:56 UTC (rev 
318354)
+++ php/php-src/trunk/sapi/cli/php_cli_server.c 2011-10-24 03:28:59 UTC (rev 
318355)
@@ -1296,12 +1296,13 @@
                                        pefree(buf, 1);
                                        return;
                                }
+                               if (is_static_file) {
+                                       pefree(buf, 1);
+                                       return;
+                               }
                        }
                        break; /* regular file */
-               } else if (is_static_file) {
-                       pefree(buf, 1);
-                       return;
-               }
+               }
                if (prev_patch) {
                        pefree(prev_patch, 1);
                        *q = DEFAULT_SLASH;

-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to