Re: [PHP-DEV] STOP PRODUCTION
This problem seems to have been introduced by a fix we made in the Zend Engine (not sure yet). We're looking into it. Andi At 06:39 PM 4/28/2001 -0400, Joe Brown wrote: 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 happenbr\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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- 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]
Re: [PHP-DEV] STOP PRODUCTION
Please try the latest Zend CVS. Also, if you're going to use an Email address which doesn't work at least set your Reply-To: field to php-dev. Andi At 06:39 PM 4/28/2001 -0400, you wrote: 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 happenbr\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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- 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]
RE: [PHP-DEV] STOP PRODUCTION
K the fix seems to have worked for me too I cant reproduce this any more. - James -Original Message- From: Andi Gutmans [mailto:[EMAIL PROTECTED]] Sent: 29 April 2001 08:35 To: [EMAIL PROTECTED] Subject: Re: [PHP-DEV] STOP PRODUCTION Please try the latest Zend CVS. Also, if you're going to use an Email address which doesn't work at least set your Reply-To: field to php-dev. Andi At 06:39 PM 4/28/2001 -0400, you wrote: 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 happenbr\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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- 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] -- 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]