Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:125991 X-Original-To: internals@lists.php.net Delivered-To: internals@lists.php.net Received: from php-smtp4.php.net (php-smtp4.php.net [45.112.84.5]) by qa.php.net (Postfix) with ESMTPS id D15781A0118 for ; Tue, 19 Nov 2024 12:59:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1732021341; bh=VAR6L6sMqlVSGAQIVpfXkn8gZtTG85dTEp5AOcN7jVg=; h=Date:Subject:To:References:From:In-Reply-To:From; b=AZXIseSmKYgJHDsTPjdd4x4xOl7XypDKNEQiu4jSpYujWWcyHveejjhR9byT5c3J2 B2hnKwR4AlQ8HzcscbKjxWXoVy1tTunjJq0O/AXwcCBbRwMVf4S3ezlS1fd3qgSU4a yYhyb/G+mFa3MndQLwItg/HpUx5wv4qIJq7DLdG803vf6uBQAWBabiLuJvpHiZ5Mum SpoyfpqQ6tcqF5hziMZH6+Hzb3tPVgtUv+7neNrgEBtFG14aoO6zFx4gO2+zhh76sZ aYI7l0qoDhKfFBu2p4FBj9JkauclmASNvJNI+6sYuvLyaYIb4rwLZIirkHQDxQ7qFm asCNGcK9zrGww== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id A7708180506 for ; Tue, 19 Nov 2024 13:02:19 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 4.0.0 (2022-12-13) on php-smtp4.php.net X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,DKIM_SIGNED, DKIM_VALID,DMARC_MISSING,HTML_MESSAGE,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=4.0.0 X-Spam-Virus: No X-Envelope-From: Received: from mail-wm1-f43.google.com (mail-wm1-f43.google.com [209.85.128.43]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Tue, 19 Nov 2024 13:02:17 +0000 (UTC) Received: by mail-wm1-f43.google.com with SMTP id 5b1f17b1804b1-432d86a3085so29583745e9.2 for ; Tue, 19 Nov 2024 04:59:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=scriptfusion-com.20230601.gappssmtp.com; s=20230601; t=1732021177; x=1732625977; darn=lists.php.net; h=in-reply-to:from:content-language:references:to:subject:user-agent :mime-version:date:message-id:from:to:cc:subject:date:message-id :reply-to; bh=/PJSjzifxAOVfwaV3cXD5c/Ohak6vJTtDlpJAcIoT1Y=; b=K/jjoZAqpNsJqm1nY5uPNTgUNh0MLard36gStPpbbfGgSDghRcIaHAWSmk4k8uylT1 g2CKIecSXGzVstyGZmBc7sSHjn38MwaXi3k82XcCBldDcBshlVSyOfd2sacGzDikjZZB fkdKzOdqY6kElere/IicvDmoE6qbj2Zvr9JNVzxUD+AsPMf6rAtdJyPp0XUrRbvf1kGA YDh1O9CZKkQu+C2Vonv6P1sOKQHUQ+NU1AH86PyvhrvWTk0Emjo8BIl4UGSSavgQCHwL kvwXcnmKc8hn+gKPChUYYJGn1e5ZFMGdmA2cWg17i6+zhPooyngq427ZG8Cn5YkyGfM9 31kA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1732021177; x=1732625977; h=in-reply-to:from:content-language:references:to:subject:user-agent :mime-version:date:message-id:x-gm-message-state:from:to:cc:subject :date:message-id:reply-to; bh=/PJSjzifxAOVfwaV3cXD5c/Ohak6vJTtDlpJAcIoT1Y=; b=MJAmovFKl+MjV/P8gcWnIVr6GE9dm0Zarxq6dB2cbnOBGRShvrFNcF0DeY2+G9HWTh 82m8WcJUeNcL393a54w8ct2sTLTz5heEVNIJylvoxxFbLFtM6Gk2tAk8NKs1p+I00vur OBZ9WiCtc5OHGCAcL4kfVnfLqicRv7ECPJuCADqfCEuLMgoIzAZXpRooscJiyYTEbyl9 5U0OQw8QgUjwY2IZHb6/y8nsnH6pdoewMXUM25eKAySL6g2n6xVVMUyE7LKZIXmJ1s1b w70zuPhG7Yc02HB0om7ykwWfkaLgqQcA4vh0Dzjb8LdbbCwehopFVPb4NWLQWVXPceNO RNjA== X-Gm-Message-State: AOJu0Yy/98IuVtifPjONWuaFNHYqKJ4M0wsJ6MpOkpts2z6TZeFWGso9 OL18VO1maxWr7VbH0RYwlJV8UH18yQ0NrrTZQpy1ZERFdRIcvQa5xS3D41pa5FuM0PYjNToqWyo UNSw= X-Google-Smtp-Source: AGHT+IFG+bbVLpUQMyXHpO1Ig31AYv+CGJ6cxm+qr2TCp9f0q7fuCXn1NvVmbu8STt9h1fcNetmsWQ== X-Received: by 2002:a05:600c:3b0a:b0:42b:af5a:109 with SMTP id 5b1f17b1804b1-432df7878b1mr132732645e9.24.1732021176937; Tue, 19 Nov 2024 04:59:36 -0800 (PST) Received: from ?IPV6:2a01:4b00:bf09:5101:e1b3:ea03:ba0f:bd5a? ([2a01:4b00:bf09:5101:e1b3:ea03:ba0f:bd5a]) by smtp.googlemail.com with ESMTPSA id 5b1f17b1804b1-432dab72085sm198116305e9.3.2024.11.19.04.59.36 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 19 Nov 2024 04:59:36 -0800 (PST) Content-Type: multipart/alternative; boundary="------------slupVtSl00WZG4DpAAnunlmD" Message-ID: <6ee2c71d-11e6-453f-b7e2-c94b131ad844@scriptfusion.com> Date: Tue, 19 Nov 2024 12:59:36 +0000 Precedence: bulk list-help: list-post: List-Id: internals.lists.php.net x-ms-reactions: disallow MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PHP-DEV] Better development streamlining of the built-in server To: internals@lists.php.net References: Content-Language: en-GB In-Reply-To: From: bilge@scriptfusion.com (Bilge) This is a multi-part message in MIME format. --------------slupVtSl00WZG4DpAAnunlmD Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 19/11/2024 12:52, John D'Orazio wrote: > My point is, would the built-in server ever be used for anything other > than local development? If not, then it would be a simple convenience > to developers to have an automatic environment variable of > "development" when launching the built-in server. Instead of manually > creating this environment variable, it would just be there. As a matter of best practice, an application should not need to know which environment it is running in, let alone be designed specifically to respond to the PHP built-in server. Cheers, Bilge --------------slupVtSl00WZG4DpAAnunlmD Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit
On 19/11/2024 12:52, John D'Orazio wrote:
My point is, would the built-in server ever be used for anything other than local development? If not, then it would be a simple convenience to developers to have an automatic environment variable of "development" when launching the built-in server. Instead of manually creating this environment variable, it would just be there.

As a matter of best practice, an application should not need to know which environment it is running in, let alone be designed specifically to respond to the PHP built-in server.

Cheers,
Bilge

--------------slupVtSl00WZG4DpAAnunlmD--