[Bb-trac] Re: [bbPress] #929: Call-time pass-by-reference has been
deprecated; [functions.core.php]
bbPress
bb-trac at lists.bbpress.org
Sat Aug 16 20:04:43 GMT 2008
#929: Call-time pass-by-reference has been deprecated; [functions.core.php]
--------------------------------------------------+-------------------------
Reporter: joelteixeira | Owner:
Type: defect | Status: new
Priority: normal | Milestone:
Component: Installation/Upgrade | Version: 1.0-alpha-1
Severity: normal | Resolution:
Keywords: install, error, call-time, dreamhost |
--------------------------------------------------+-------------------------
Changes (by joelteixeira):
* summary: Everything works fine on a localhost install, but when I try
install on my dreamhost account... => Call-time
pass-by-reference has been deprecated;
[functions.core.php]
Comment:
Guys, this is a diff between functions.core.php from a 1.0-alpha (woking)
and from a svn trunk install where i get the error. Changing only this
file eliminates the error.
{{{
494a495,507
>
> function backpress_convert_object( &$object, $output ) {
> if ( is_array( $object ) ) {
> foreach ( array_keys( $object ) as $key )
> backpress_convert_object( &$object[$key], $output
);
> } else {
> switch ( $output ) {
> case OBJECT : break;
> case ARRAY_A : $object = get_object_vars($object);
break;
> case ARRAY_N : $object =
array_values(get_object_vars($object)); break;
> }
> }
> }
}}}
--
Ticket URL: <http://trac.bbpress.org/ticket/929#comment:1>
bbPress <http://bbpress.org/>
Innovative forum development
More information about the Bb-trac
mailing list