#24467 [Fbk->NoF]: PHP 5 didn't parse Array in (for loops)
| From: | sniper@php.net | Date: | Tue, 15 Jul 2003 21:35:55 +0000 |
| Subject: | #24467 [Fbk->NoF]: PHP 5 didn't parse Array in (for loops) | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-44064@lists.php.net to get a copy of this message | ||
ID: 24467
Updated by: sniper@php.net
Reported By: mingmaster at gmx dot de
-Status: Feedback
+Status: No Feedback
Bug Type: Scripting Engine problem
Operating System: Linux
PHP Version: 5.0.0b1 (beta1)
New Comment:
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Open". Thank you.
Previous Comments:
------------------------------------------------------------------------
[2003-07-08 02:04:21] arni at ext dot ru
look at this
for($h = 1; $h < 7 ; $h++)
------------------------------------------------------------------------
[2003-07-02 15:34:09] derick@php.net
Please provide a full self contained script (copy and paste for us
should work).
------------------------------------------------------------------------
[2003-07-02 15:32:39] mingmaster at gmx dot de
Description:
------------
PHP 5 didn't parse Array in (for loops)
PHP Version 5.0.0b1 Apache/2
./configure --with-apxs2=/www/bin/apxs --with-mysql=/usr
--with-gnu-ld --with-jpeg-dir=/usr/lib
--with-tiff-dir=/usr/lib --with-png-dir=/usr/lib --with-zlib=/usr
--with-gd --with-zlib-dir=/usr/lib --with-pdflib=/usr
--with-sablot=/usr --with-dom-xslt=/usr --with-openssl=/usr
--with-freetype-dir=/usr/include/freetype --enable-gd-native-ttf
--enable-gd-imgstrttf
--with-xpm-dir=/usr/X11R6/ --with-openldap=/usr
--enable-fast-install
--enable-bcmath --enable-calendar --enable-debug
--enable-force-cgi-redirect
--with-config-file-path=/www/conf --enable-ftp --with-dom=/usr
--with-ming=/usr/lib/ming --with-swf=/usr/lib/swf --with-mcrypt=/usr
--with-mm
--with-mhash --with-libxml-dir=/usr --with-expat-dir=/usr
--with-xsl=/usr
Reproduce code:
---------------
$zaehle = array_reverse(array_count_values($temp));
print_r($zaehle); // Array ( [3] => 1 [5] => 2 [6] => 6 )
for($h = 1; $h < 7 ; $h++) {
$schnitt[$h] = ($h * ($zaehle[$h] ? $zaehle[$h] : 0));
$menge[$h] = ($zaehle[$h] * $satz);
}
print_r($schnitt); // Array ( [1] => 0 [2] => 0 [3] => 0 [4] => 0 [5]
=> 0 [6] => 0 )
Expected result:
----------------
// Array ( [1] => 0 [2] => 0 [3] => 0 [4] => 0 [5] => 0 [6] => 0 )
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=24467&edit=1