ID: 10544
User Update by: [EMAIL PROTECTED]
Status: Open
Bug Type: Scripting Engine problem
Description: if(!($res=OCIPLogon(...))

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:

if(!($connection=ociplogon("scott","tiger","orcl"))) {  echo "above result is false, 
so this will probably never happen<br>\n";
$query = "select user from dual";
echo OCIResult($statement,1)."<br>\n";


Previous Comments:

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


Full Bug description available at:

PHP Development Mailing List <>
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