Edit report at https://bugs.php.net/bug.php?id=60075&edit=1
ID: 60075
Comment by: stuart at 3ft9 dot com
Reported by: paul dot a dot norman at gmail dot com
Summary: using -t /myPath does not add /myPath to
include_path
Status: Open
Type: Feature/Change Request
Package: Built-in web server
Operating System: Win32
PHP Version: 5.4.0beta1
Block user comment: N
Private report: N
New Comment:
This is my first patch so I may have missed something. This patch simply
prepends
the document root to include_path for each request.
Previous Comments:
------------------------------------------------------------------------
[2011-10-17 07:59:21] paul dot a dot norman at gmail dot com
Description:
------------
If the php internal server is launched using php -S localhost:8001 -t /myPath
server_process.php
and server_process.php is in /myPath the following would result
Warning: Unknown: failed to open stream: No such file or directory in Unknown
on
line 0
Fatal error: Unknown: Failed opening required 'server_process.php'
(include_path='.;C:\php\pear') in Unknown on line 0
Obviously using: ... -t /myPath /myPath/server_process.php
works as expected,
but it would seem intuitive that when using:
php -S localhost:8001 -t something
that "something" would be automatically added to the include_path ?
P.S. the php internal server is a brilliant addition, facilitates making
virtual
desktop applications in the browser a cinch! Allows the leveraging of browser
technology jQuery and all the rest with php on the client -- very powerful!!!
Add in http://gluescript.sourceforge.net/ http://gtk.php.net/ or simillar for
local wxWdiget dialogues called as necessary from php
http://php.net/manual/en/function.system.php and an almost complete powerful
solution is available.
Paul
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=60075&edit=1