Re: [PHP4BETA] Tests?
| From: | Zeev Suraski | Date: | Sat, 01 May 1999 01:07:15 +0000 |
| Subject: | Re: [PHP4BETA] Tests? | ||
| References: | 1 | Groups: | php.version4 |
| Request: | Send a blank email to php-version4+get-611@lists.php.net to get a copy of this message | ||
This was a corruption bug when comparing with boolean constants. It's
fixed in the latest libzend cvs.
Zeev
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".
>
> I had thought the lack of replies was my down to my obvious stupidity... (or
> something to do with true and false being proper boolean types now?) :(
>
>
>
> > Another trivia question - I'd like to know what kind of platforms you use
> > to test PHP4/Zend on. Not all the platforms you have access to, just the
> > ones you actually use to run PHP on.
>
>
> We use FreeBSD, we have PHP3 (3.0.7) running on FreeBSD 2.2.7 (all on Intel
> P120's, P90's), version 3.0.7 and 4 on FreeBSD 3.1-RELEASE and 4.0-Current
> (running on Intel SMP dual P2-450 or Dual P-Pro).
>
> The other problem I have is building all this stuff... I can program in 'c',
> but I've led a sheltered life under Win32 - that and a lack of time at the
> moment means I haven't been able to sit down and sift through all the emails
> to find out which bits to build/how to build it...
>
> Maybe we could have a webpage/BUILD text file or something that lists what you
> have to do to build it - from a 'clean' checkout? (and this gets updated as
> and when things change?)
>
> 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 :-)
>
> Regards,
>
> Karl
>
--
-----------------------------------------------------
Zeev Suraski <zeev@zend.com>
For a PGP public key, finger bourbon@netvision.net.il
--
PHP 4 Beta