Posted by Matthew Crouch on 10/15/26 11:33
Sean wrote:
> Try
>
> $old_value = ini_set('display_errors', 'on');
>
> if ($old_value === false)
> print "Nope";
> else
> print "It worked: old value was $old_value";
>
> Something tells me though its probably not going to work.
>
it says it worked but it didn't, because ini_set returns a string, not a
boolean. the correct comparison ($old_value == false) says "Nope"
[Back to original message]
|