Closed (fixed)
Project:
Cache browser
Version:
6.x-1.1
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
24 Oct 2008 at 12:03 UTC
Updated:
2 Nov 2008 at 16:31 UTC
I've got followed error when I'm going to admin/build/cache_browser:
Parse error: parse error, unexpected '&', expecting T_VARIABLE or '$' in /cache_browser/cache_browser.pages.inc on line 463
Probably this reference method is not supported by PHP 4.x
Temporary I've changed:
foreach ($data as $key => &$value) {
to:
foreach ($data as $key => $value) {
But I don't know which functionality I'll lost.
Comments
Comment #1
kenorb commentedLine 463 and the same in line 504
Comment #2
markus_petrux commentedHi,
The problem is I've been using a PHP5 thing here.
Your code above may cause to break the process when browsing an array or object with a lot of nested levels, such as things cached by views.
Could you please try this instead:
This would replace the following in lines 463 and 504.
Comment #3
markus_petrux commentedNah, it was not so easy...
I just released 6.x-1.2 with a fix for this, and a few more things.
Feel free to reopen if needs to be.
Comment #4
markus_petrux commented