PHP 4.0 Bug #4848: Max() on array crashes PHP
| From: | m dot jurgens at triangle-services dot com | Date: | Tue, 06 Jun 2000 22:26:14 +0000 |
| Subject: | PHP 4.0 Bug #4848: Max() on array crashes PHP | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-20396@lists.php.net to get a copy of this message | ||
From: m.jurgens@triangle-services.com
Operating system: Linux
PHP version: 4.0 Latest CVS (07/06/2000)
PHP Bug Type: Reproduceable crash
Bug description: Max() on array crashes PHP
Max on array will result in a blank page, even if other output should have been generated by the
script.
This error has been reproduced on multiple configurations. Just run the script below. (works in
PHP3)
<html>
<head>
<title>Untitled</title>
</head>
<body>
<?
$values[0] = 0; //value
$values[1] = 1; //value
$largest = max($values);
echo $largest;
?>
</body>
</html>