|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2012-08-12 02:34 UTC] laruence@php.net
-Status: Open
+Status: Not a bug
[2012-08-12 02:34 UTC] laruence@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Oct 29 13:00:01 2025 UTC |
Description: ------------ During development, it can be useful to override certain php.ini settings for specific server instances (using the PHP built-in web server). Of course, it’s possible to edit `php.ini` every time this is needed, (or use `ini_set` in the PHP code where applicable), but for small changes it would be very useful to just be able to specify the setting and its value as a command line argument/value pair. For example, to start a test server with a custom `include_path` setting (without overriding `php.ini` or changing the existing PHP code by adding `ini_set()` calls): php -S localhost:8000 --set "include_path=.:/foo/bar:/baz/qux" The syntax is just an example. Perhaps you’d prefer to do it a bit differently, and allow people to point to a project-specific `php.ini` file: php -S localhost:8000 --ini "./project.ini" However, I’d strongly prefer the first solution.