|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Oct 29 00:00:01 2025 UTC |
Serious problem... I checked out php4 today, and compiled it on windows and linux. The bang (!) in the if statement changes the resource to if(!($connection=ociplogon("scott","tiger","orcl"))) { var_dump($connection) = resource(1) of type (Unknown) w/out the bang(!) if(($connection=ociplogon("scott","tiger","orcl"))) { var_dump($connection) = resource(1) of type (oci8 connection) This code fails miserably: <? $connection=0; $statement=0; if(!($connection=ociplogon("scott","tiger","orcl"))) { echo "above result is false, so this will probably never happen<br>\n"; } var_dump($connection); $query = "select user from dual"; $statement=OCIParse($connection,$query); OCIExecute($statement); OCIFetch($statement); echo OCIResult($statement,1)."<br>\n"; OCIFreeStatement($statement); ?> if(!($connection=ociplogon("scott","tiger","orcl")))