Ticket #929 (closed defect: fixed)

Opened 4 months ago

Last modified 3 months ago

Call-time pass-by-reference has been deprecated; [functions.core.php]

Reported by: joelteixeira Assigned to:
Priority: normal Milestone:
Component: Installation/Upgrade Version: 1.0-alpha-1
Severity: normal Keywords: install, error, call-time, dreamhost
Cc:

Description

I get the following error:


Warning: Call-time pass-by-reference has been deprecated; If you would like to pass it by reference, modify the declaration of [runtime function name](). If you would like to enable call-time pass-by-reference, you can set allow_call_time_pass_reference to true in your INI file in /bb-includes/backpress/functions.core.php on line 499


The message stays on the top of page, above header, seems that I can use everything but the message stays there.

$ svn info Path: URL: http://svn.automattic.com/bbpress/trunk Repository Root: http://svn.automattic.com/bbpress Repository UUID: 9866e705-20ec-0310-96e7-cbb4277adcfb Revision: 1651 Node Kind: directory Schedule: normal Last Changed Author: sambauers Last Changed Rev: 1651 Last Changed Date: 2008-08-13 12:13:00 -0700 (Wed, 13 Aug 2008)

Change History

08/16/08 20:04:43 changed by joelteixeira

  • summary changed from Everything works fine on a localhost install, but when I try install on my dreamhost account... to Call-time pass-by-reference has been deprecated; [functions.core.php].

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;                     
>               }                                                                                                   
>       }                                                                                                           
> }                                                                                                                 

08/26/08 20:45:58 changed by mdawaffe

  • status changed from new to closed.
  • resolution set to fixed.

Fixed in [BP118]