php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #55072 In-built web server needs to check -t option is a directory
Submitted: 2011-06-29 17:15 UTC Modified: 2011-06-29 19:45 UTC
From: sixd@php.net Assigned: dsp (profile)
Status: Closed Package: Built-in web server
PHP Version: 5.4SVN-2011-06-29 (SVN) OS: Linux
Private report: No CVE-ID: None
 [2011-06-29 17:15 UTC] sixd@php.net
Description:
------------
The PHP 5.4 in-built webserver needs validate that the -t argument is a 
directory.






Test script:
---------------
$ php54 -n -S localhost:8000 -t routing.php

Expected result:
----------------
$ php54 -n -S localhost:8000 -t routing.php 
"routing.php is not a directory."

(or a better phrased error message)

Actual result:
--------------
$ php54 -n -S localhost:8000 -t routing.php 
Server is listening on localhost:8000 in routing.php ... Press CTRL-C to quit.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2011-06-29 18:09 UTC] sixd@php.net
-Package: CGI related +Package: Other web server
 [2011-06-29 18:30 UTC] felipe@php.net
-Package: Other web server +Package: Built-in web server
 [2011-06-29 19:45 UTC] dsp@php.net
-Status: Open +Status: Closed -Assigned To: +Assigned To: dsp
 [2011-06-29 19:45 UTC] dsp@php.net
This bug has been fixed in SVN.

Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.
 
Thank you for the report, and for helping us make PHP better.

fixed in r312643
http://svn.php.net/viewvc?view=revision&revision=312643
 [2012-04-18 09:50 UTC] laruence@php.net
Automatic comment on behalf of dsp
Revision: http://git.php.net/?p=php-src.git;a=commit;h=5024c3279818a5b55c6ebc2c3382c1b0d2675ec3
Log: fix #55072 in-built web server needs to check -t option is a directory
 [2012-07-24 23:41 UTC] rasmus@php.net
Automatic comment on behalf of dsp
Revision: http://git.php.net/?p=php-src.git;a=commit;h=5024c3279818a5b55c6ebc2c3382c1b0d2675ec3
Log: fix #55072 in-built web server needs to check -t option is a directory
 [2013-11-17 09:37 UTC] laruence@php.net
Automatic comment on behalf of dsp
Revision: http://git.php.net/?p=php-src.git;a=commit;h=5024c3279818a5b55c6ebc2c3382c1b0d2675ec3
Log: fix #55072 in-built web server needs to check -t option is a directory
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Oct 31 23:01:28 2024 UTC