Date: 10/13/00
- Next message: Sterling Hughes: "Re: [PHP-DEV] Re: [PHP-CVS] cvs: php4 / TODO"
- Previous message: Bug Database: "[PHP-DEV] PHP 4.0 Bug #7182 Updated: Problems with php-cgi"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
From: madey <email protected>
Operating system: OpenBSD 2.7 (i386)
PHP version: 4.0.3
PHP Bug Type: Scripting Engine problem
Bug description: $count++ bug (does not increase value in some cases)
<html>
<body>
PHP 4.x : When I set $count to "", $count++ doesn't work properly.<br>
PHP 3.x : script works OK.<br>
<br>
Don't tell me that's OK ;) ... I'm perl programmer and I have some habits...<br>
<br>
Simple example of $count++ bug.<br>
(it should print 7 lines in PHP 3.x, but in PHP 4.x it loops :( )<br>
<br>
<?php
$row_count = "7";
$count = "";
$line = "0";
while ($count < $row_count)
{
print "Line " . $line++ . ", count : " . $count++ . "<br>\n";
}
?>
</body>
</html>
-- Edit Bug report at: http://bugs.php.net/?id=7185&edit=1-- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: php-dev-unsubscribe <email protected> For additional commands, e-mail: php-dev-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>
- Next message: Sterling Hughes: "Re: [PHP-DEV] Re: [PHP-CVS] cvs: php4 / TODO"
- Previous message: Bug Database: "[PHP-DEV] PHP 4.0 Bug #7182 Updated: Problems with php-cgi"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

