ID:               27442
 Comment by:       marrtins at hackers dot lv
 Reported By:      kim at openphp dot cn
 Status:           Bogus
 Bug Type:         Unknown/Other Function
 Operating System: Windows Server 2003
 PHP Version:      4.3.4
 New Comment:

i'v got the same problem - on windows 2003 running iis + php. on linux
2.4.x and windows 2000 on (both on apache) this code produces *no*
warning.


Previous Comments:
------------------------------------------------------------------------

[2004-03-12 04:20:01] kim at openphp dot cn

OK,$value = @ (2/0); has always output .  On Windows Server 2003 . Some
One test it ?

http://www.openphp.cn/zero.gif
http://www.openphp.cn/zero2.gif

------------------------------------------------------------------------

[2004-03-02 05:54:58] kim at openphp dot cn

Oh~My God ! Look At These two Pictures :
http://www.openphp.cn/zero.gif
http://www.openphp.cn/zero2.gif
I don't know how to use CMD ....:)

------------------------------------------------------------------------

[2004-03-02 05:21:41] [EMAIL PROTECTED]

[EMAIL PROTECTED]:~$ php-4.3.5RC3 -n -derror_reporting=2047 -r '$value = @
(2/0);';
[EMAIL PROTECTED]:~$ php-5.0dev -n -derror_reporting=2047 -r '$value = @
(2/0);';
[EMAIL PROTECTED]:~$


no output...

------------------------------------------------------------------------

[2004-03-02 05:10:44] kim at openphp dot cn

Sorry . My English is not good :(
But , 

<?php

$value = @ (2/0);

?>

On PHP4.3.4(or higher) , the output is :

Warning: Division by zero in Unknown on line 0

Not:

This also has nothing to do with your earlier example:
<?php echo @ (2/0); ?> shows no output at all on php 4.3.2,
4.3.3,4.3.5rc1 and 5.0dev

------------------------------------------------------------------------

[2004-03-02 04:45:41] [EMAIL PROTECTED]

This is not a bug, check_date() gives an E_WARNING error since PHP
4.3.4 in case the parameter passed is not an integer. Because you
explode on a string, the first ($year) will contain the string and both
$month and $day will contain NULL, which are automatically converted to
'0', but the empty string for $year isn't.

This also has nothing to do with your earlier example:
<?php echo @ (2/0); ?> shows no output at all on php 4.3.2, 4.3.3,
4.3.5rc1 and 5.0dev

------------------------------------------------------------------------

The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
    http://bugs.php.net/27442

-- 
Edit this bug report at http://bugs.php.net/?id=27442&edit=1

Reply via email to