[php-src] Issue #11045: Allow PHPs development server to be used in production

From: Date: Mon, 10 Apr 2023 03:58:43 +0000
Subject: [php-src] Issue #11045: Allow PHPs development server to be used in production
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-244160@lists.php.net to get a copy of this message
Issue: https://github.com/php/php-src/issues/11045 Author: nbish11 ### Description It would be good if we could use PHPs built-in server for smaller website deployments, rather than having to use nginx, apache, caddy, swoole, amp, react php, etc. Ideally, for development I can do php -S 0.0.0.0:8443 --dev -t public/index.php --tls-cert letsencrypt.crt --tls-key letsencrypt.key --http2 And then for development, I can do php -S 0.0.0.0:8443 --prod -t public/index.php --tls-cert localhost.crt --tls-key localhost.key --http2 And then in php file: ```php <?php if (isset($DEV)) { error_reporting(E_ALL); } ``` Or something to that effect

« previous php.bugs (#244160) next »