ID: 24467 Updated by: [EMAIL PROTECTED] 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] [EMAIL PROTECTED] 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