-d stopped working in 4.3.4?

php.internals

Rasmus Lerdorf

22 years ago
Is it me or does -d no longer work in 4.3? To test: php -d "track_errors=1" -i | grep track (assuming you have it off in your php.ini) Works fine for me in 4.3.2 but looks quite broken in 4.3.4. Anybody play around in that code? -Rasmus

Joe Estock

22 years ago
On 2/4/2004 3:12 PM, Rasmus Lerdorf wrote:
> Is it me or does -d no longer work in 4.3? To test: > > php -d "track_errors=1" -i | grep track > > (assuming you have it off in your php.ini) > > Works fine for me in 4.3.2 but looks quite broken in 4.3.4. Anybody play > around in that code? > > -Rasmus
Works fine for me in 4.3.4RC3. Here is the output: php -d "track_errors=1" -i | grep track track_errors => Off => Off Cheers, Joe (a.k.a. guru)

Marcus Börger

22 years ago
Hello Joe, Wednesday, February 4, 2004, 10:40:10 PM, you wrote:
> On 2/4/2004 3:12 PM, Rasmus Lerdorf wrote: >> Is it me or does -d no longer work in 4.3? To test: >> >> php -d "track_errors=1" -i | grep track >> >> (assuming you have it off in your php.ini) >> >> Works fine for me in 4.3.2 but looks quite broken in 4.3.4. Anybody play >> around in that code? >> >> -Rasmus
> Works fine for me in 4.3.4RC3. Here is the output:
> php -d "track_errors=1" -i | grep track > track_errors => Off => Off
No. Since you set track_errors to 1 (=On) it shouldn't display Off.
-- Best regards, Marcus mailto:helly@php.net

Rasmus Lerdorf

22 years ago
On Wed, 4 Feb 2004, Joe Estock wrote:
> On 2/4/2004 3:12 PM, Rasmus Lerdorf wrote: > > Is it me or does -d no longer work in 4.3? To test: > > > > php -d "track_errors=1" -i | grep track > > > > (assuming you have it off in your php.ini) > > > > Works fine for me in 4.3.2 but looks quite broken in 4.3.4. Anybody play > > around in that code? > > > > -Rasmus > > Works fine for me in 4.3.4RC3. Here is the output: > > php -d "track_errors=1" -i | grep track > track_errors => Off => Off
Well that shows exactly that it didn't work. track_errors should be saying On there since you set it to 1 with the -d. It turns out that between PHP 4.3.2 and 4.3.4 php -i was changed to ignore any -d settings. -Rasmus

messju mohr

22 years ago
On Wed, Feb 04, 2004 at 02:13:59PM -0800, Rasmus Lerdorf wrote:
> On Wed, 4 Feb 2004, Joe Estock wrote: > > > On 2/4/2004 3:12 PM, Rasmus Lerdorf wrote: > > > Is it me or does -d no longer work in 4.3? To test: > > > > > > php -d "track_errors=1" -i | grep track > > > > > > (assuming you have it off in your php.ini) > > > > > > Works fine for me in 4.3.2 but looks quite broken in 4.3.4. Anybody play > > > around in that code? > > > > > > -Rasmus > > > > Works fine for me in 4.3.4RC3. Here is the output: > > > > php -d "track_errors=1" -i | grep track > > track_errors => Off => Off > > Well that shows exactly that it didn't work. track_errors should be > saying On there since you set it to 1 with the -d. It turns out > that between PHP 4.3.2 and 4.3.4 php -i was changed to ignore any -d > settings.
it works for me with php-4.3.4 cgi-sapi: track_errors is reported to be set correctly. but it doesn't work with cli-sapi (i only had 4.3.3 as cli to test that). it seems the problem is specific to the cli-sapi.

Joe Estock

22 years ago
On 2/4/2004 4:13 PM, Rasmus Lerdorf wrote:
> On Wed, 4 Feb 2004, Joe Estock wrote: > > >>On 2/4/2004 3:12 PM, Rasmus Lerdorf wrote: >> >>>Is it me or does -d no longer work in 4.3? To test: >>> >>> php -d "track_errors=1" -i | grep track >>> >>>(assuming you have it off in your php.ini) >>> >>>Works fine for me in 4.3.2 but looks quite broken in 4.3.4. Anybody play >>>around in that code? >>> >>>-Rasmus >> >>Works fine for me in 4.3.4RC3. Here is the output: >> >>php -d "track_errors=1" -i | grep track >>track_errors => Off => Off > > > Well that shows exactly that it didn't work. track_errors should be > saying On there since you set it to 1 with the -d. It turns out > that between PHP 4.3.2 and 4.3.4 php -i was changed to ignore any -d > settings. > > -Rasmus
My appologies. For some reason I was thinking 1 was Off and 0 On. It's been a very long day :|