Re: [PHP4BETA] Tests?
| From: | Zeev Suraski | Date: | Thu, 29 Apr 1999 15:42:57 +0000 |
| Subject: | Re: [PHP4BETA] Tests? | ||
| References: | 1 | Groups: | php.version4 |
| Request: | Send a blank email to php-version4+get-592@lists.php.net to get a copy of this message | ||
On Thu, 29 Apr 1999, Karl Pielorz wrote:
> Zeev Suraski wrote:
> >
> > I'm wondering, did any of you actually try to use PHP 4, as a CGI or an
> > Apache module, with your PHP 3.0 code? There were a few bug reports, but
> > virtually no success stories, and I'm wondering whether it is because
> > Zend's so great, or because nobody's actually testing it...
>
>
>
> I reported some problems a while ago, a lot of our database code under 3.0
> does things like:
>
> "
> /* Connect to the Database */
> $MainDB = mysql_connect( $SQLDB_ServerName, $SQLDB_UserName, $SQLDB_Password
> );
> if( $MainDB == false ){
> sql_fail( "Connecting to stat DB" );
> }
> $Temp = mysql_select_db( $SQLDB_DBName, $MainDB );
>
> /* Error if we can't connect */
>
> if( $Temp == false ){ <<<---- FAILS HERE? (Bizzare, but this is where it says
> it's failed!)
> echo( "Failed to connect / login to the stat database.\n" );
> echo( mysql_error().":".mysql_errno() );
> exit();
> }
> "
>
> This falls over with "Warning: 1 is not a MySQL link index on line 160".
Hmm, weird. I'll check that code in the evening. What's line 160, by
the way?
> If it's any consolation - we have httpd compiled up for both PHP3 and PHP4 on
> one box (so I can switch between them), and the PHP4 spews HTML out an order
> of magnitude more than the PHP3 code does... (Ha! - What a suprise I hear you
> say :-)
Nah, it's actually the first time somebody actually reports that it was
worth it :)
Zeev
--
-----------------------------------------------------
Zeev Suraski <zeev@zend.com>
For a PGP public key, finger bourbon@netvision.net.il
--
PHP 4 Beta