Re: [PHP4BETA] Zend still crashing (testcase+purify dump included!)

From: Date: Tue, 21 Dec 1999 14:56:18 +0000
Subject: Re: [PHP4BETA] Zend still crashing (testcase+purify dump included!)
Groups: php.version4 
Request: Send a blank email to php-version4+get-8300@lists.php.net to get a copy of this message
If you want "1", "2", and "3" in separate array elements, shouldn't you do something like this? $a = array("1","2","3"); -----Original Message----- From: Stanislav Malyshev <stas@zend.com> To: Thies C. Arntzen <thies@digicol.de> Cc: php4beta@lists.php.net <php4beta@lists.php.net> Date: Tuesday, December 21, 1999 7:09 AM Subject: Re: [PHP4BETA] Zend still crashing (testcase+purify dump included!) >TCA>> $a = array("123"); >TCA>> switch(strlen($a[0])) >TCA>> { case 2: echo "2"; break; >TCA>> case 3: echo "3"; break; >TCA>> default: break; >TCA>> } >TCA>> ?> > >The weird this is that it doesn't crash on my PHP (freshly taken from >CVS), but it doesn't print 3 or 2 also! though, if I say "echo >strlen($a[0])" it gives 3. Something is not OK there. > >-- >Stanislav Malyshev stas@zend.com >+972-50-624945 > > >-- >PHP 4.0 Beta Mailing List <http://www.php.net/version4/> >To unsubscribe, e-mail: php4beta-unsubscribe@lists.php.net >For additional commands, e-mail: php4beta-help@lists.php.net >To contact the list administrators, e-mail: php4beta-admin@lists.php.net >

« previous php.version4 (#8300) next »