FW: [PHP-DEV] STOP PRODUCTION
| From: | James Moore | Date: | Sat, 28 Apr 2001 23:04:10 +0000 |
| Subject: | FW: [PHP-DEV] STOP PRODUCTION | ||
| Groups: | php.qa | ||
| Request: | Send a blank email to php-qa+get-2972@lists.php.net to get a copy of this message | ||
Can someone verify this, I dont have oci here. I can get it to happen with
other modules though.
- James
> -----Original Message-----
> From: Joe Brown [mailto:joebrown@somewhere.com]
> Sent: 28 April 2001 23:39
> To: php-dev@lists.php.net
> Subject: [PHP-DEV] STOP PRODUCTION
>
>
> 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);
> ?>
>
>
>
> --
> PHP Development Mailing List <http://www.php.net/>
> To unsubscribe, e-mail: php-dev-unsubscribe@lists.php.net
> For additional commands, e-mail: php-dev-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net