ID: 10544
Updated by: andi
Reported By: [EMAIL PROTECTED]
Old-Status: Open
Status: Closed
Bug Type: Scripting Engine problem
PHP Version: 4.0 Latest CVS (28/04/2001)
Assigned To: 
Comments:

Should be fixed in latest CVS

Previous Comments:
---------------------------------------------------------------------------

[2001-04-28 22:05:39] [EMAIL PROTECTED]
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"))) 

---------------------------------------------------------------------------

[2001-04-28 22:03:39] [EMAIL PROTECTED]


---------------------------------------------------------------------------



ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=10544&edit=2


-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to