Re: Bugs web bug :)

From: Date: Mon, 28 Jan 2002 14:04:27 +0000
Subject: Re: Bugs web bug :)
References: 1  Groups: php.qa 
Request: Send a blank email to php-qa+get-4325@lists.php.net to get a copy of this message
Hi, On Mon, 28 Jan 2002 20:36:23 +0900 Yasuo Ohgaki <yasuo_ohgaki@yahoo.com> wrote: > Currently displaying all bugs. Display only PHP3 bugs or only PHP4 bugs. > > Fatal error: Cannot increment/decrement overloaded objects nor string > offsets in /local/Web/sites/php-bugs-web/bugstats.php on line 42 while($row=mysql_fetch_array($result)) { $bug_type['all'][$row[bug_type]]++; $status = strtolower($row['status']); if ($status == 'closed' || $status == 'bogus') { $closed_by[$row['dev_id']]++; } $bug_type[$status][$row[bug_type]]++; $bug_type[$status]['all']++; $email[$row[email]]++; $php_version[$row[php_version]]++; $php_os[$row[php_os]]++; $status[$row['status']]++; // Line 42 $total++; } I can't even imagine what these lines are supposed to do. Especially 37 to 42. According to the if statement $staus should be a string, as well as $row['status']. So what is the sense of $status[$row['status']]++; ? Jan -- Q: Thank Jan? A: http://geschenke.an.dasmoped.net/

« previous php.qa (#4325) next »