When I recently upgraded my server to PHP 5.3 I found a problem with the 6.x-2.0-rc10 codebase related to the stricter error checking in PHP 5.3. I have also written a solution to this problem (it was fairly easy to do once I finally figured out what the problem was). The drupal codebase uses the call_user_func_array() method which never passes by reference apparently. However, it is easy to get the variables passed by reference with the two changes I made. See more about the problem and solution here:

http://stackoverflow.com/questions/1905800/php-call-user-func-array-pass...

-----
The solution I came up with was modifying line 737 of filebrowser.module to the following:
Old line:
'#value' => theme('filebrowser_dir_listing', $node),
New Changes:
'#value' => theme('filebrowser_dir_listing', (Object) Array("node" => $node)),

Then the method signature needs to be updated, and one line added on line 919:
Old line:
function theme_filebrowser_dir_listing(& $node) {
New Changes:
function theme_filebrowser_dir_listing($node_ref) {
$node = $node_ref->node;
-------

Hopefully that will help get a solution in place! Thanks for a great module.
Steve

Comments

Yoran’s picture

i'm sorry about that but -dev has been reworked a lot in order to permit an alpha for this module. So normally this problem is gone is dev. Do you mind give it a try ?

Yoran’s picture

Status: Active » Postponed (maintainer needs more info)
Yoran’s picture

Status: Postponed (maintainer needs more info) » Closed (fixed)