|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2004-03-01 00:33 UTC] kim at openphp dot cn
Description: ------------ Small bugs?I don't know. <?php $value = @ (2 / 0); ?> From browser Ouput : <br /> <b>Warning</b>: Division by zero in <b>Unknown</b> on line <b>0</b><br /> But From Zend Studio's "GO" , Output is nothing... The correct is nothing output . PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Nov 14 12:00:01 2025 UTC |
The same ....... I thank it is different between 4.3.4(or higher) and 4.3.3 . Or it is different between IIS and Apache . I haven't tested On IIS/php4.3.4 , but I tested the code on IIS/4.3.3 , everything is OK. The Error process have something wrong : ------------------------------------------- <? error_reporting( E_ALL ^ E_NOTICE ); // ???þ??漶?? function myErrorHandler ($errno, $errstr, $errfile, $errline) { switch ($errno) { case E_USER_NOTICE: case E_USER_WARNING: case E_NOTICE: case E_CORE_WARNING: case E_CORE_ERROR: case E_COMPILE_WARNING: break; default: die("here"); } } $old_error_handler = set_error_handler("myErrorHandler"); // mysql_connect ("localhost", "username", "secret"); $ubirth=""; $arr=explode("-", $ubirth); print_r($arr); list($year, $month, $day) = explode("-", $ubirth); echo checkdate($month, $day, $year); echo checkdate(1, 1, 1); exit; ?> --------------------------------------- On IIS5/PHP4.3.3 everything is OK . Output is "Array ( [0] => ) 1" On Apache2/PHP4.3.4(4.3.5RC4-dev) . Output is "Array ( [0] => ) here". I don't know why it is different . but it makes me puzzle .