RE: [PHP4BETA] lates libzend update did bad things

From: Date: Fri, 03 Sep 1999 14:36:10 +0000
Subject: RE: [PHP4BETA] lates libzend update did bad things
References: 1  Groups: php.version4 
Request: Send a blank email to php-version4+get-4040@lists.php.net to get a copy of this message
> Yes. unset($var) leaves no trace of $var. Assigning $var with anything, > regardless of what you're assigning it with, $undefined_var > included, means > $var is intact, and contains some sort of a value. It would contain that > so called undefined value, but it would mean that each and every piece of > code that may handle $var must be aware that in case it contains that > undefined value, it must behave differently. In php4, what would be returned if $url was not in $urls[] ? Surely the undefined value? function GetPageOwner($url) { return $GLOBALS["urls"][$url]; } $owner=GetPageOwner(GetEnv("HTTP_REFERER")); if (isset($owner)) %><a href="<% echo GetOwnerURL($owner);%>Welcome, your host is <%=$owner;%></a><% } else {%>Welcome<% } Sam

« previous php.version4 (#4040) next »