PHP Warnings after install

Bug #353573 reported by Tim McNamara
10
Affects Status Importance Assigned to Milestone
Sahana Agasti
Fix Released
Undecided
charles wisniewski

Bug Description

Warnings
Warning: Call-time pass-by-reference has been deprecated; If you would like
to pass it by reference, modify the declaration of
shn_location_get_descendants(). 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
/var/www/templevoad/sahana/mod/or/lib_or.inc on line 36

Warning: Call-time pass-by-reference has been deprecated; If you would like
to pass it by reference, modify the declaration of shn_get_parents(). 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
/var/www/templevoad/sahana/mod/or/lib_or.inc on line 141
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
/var/www/templevoad/sahana/inc/lib_location.inc on line 113

Warning: Call-time pass-by-reference has been deprecated; If you would like
to pass it by reference, modify the declaration of shn_config_database_fetch(). 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
/var/www/templevoad/sahana/mod/admin/conf_admin.inc on line 128

I was about to promote sahana as a proof of concept project but i cannot
present it with these warnings popping up....
Is there a more stable release that I can use, that would not display these
warnings? Please advise...

Tags: php php5 sahana
tags: added: php php5 sahana
Revision history for this message
Grant Croker (grant-croker) wrote :

If all you want to do is disable these warnings you can set PHP not to display errors when executing. Configuring the ini setting display_errors, giving the value Off or 0 will disable errors being reported to the web brower. If you still want to keep a record of the errors then set:
log_errors = On
error_log = /tmp/php.log
and all errors get recorded to that file.

Fran Boon (flavour)
affects: sahana-eden → sahana-agasti
Revision history for this message
dot dot dot (dotdotdotdeactivated-deactivatedaccount) wrote :

What version of PHP was used in the environment for this bug?

Revision history for this message
charles wisniewski (charles-wisniewski) wrote : Re: [Bug 353573] Re: PHP Warnings after install

:) Hi Greg,
I was trying to get this information also, that should be a standard in
bug reporting policy (REQUIRED fields, and yes, we can change the
bugtracker's behavior)

presumably 5.3.0 +
As of PHP 5.3.0, you will get a warning saying that "call-time
pass-by-reference" is deprecatedwhen you use & in foo(&$a);

Basically in the function dec and the function call, & needs to be
removed....
It's a fairly easy fix, and I was considering doing it yesterday, think I
should proceed and push the code and you can merge it in?

Advise and input welcome,
Cheers,
Charles

Charles Wisniewski
Application Architect
CUNY School of Professional Studies
tel: 212.652.2094
http://sps.cuny.edu/

Greg Miernicki <email address hidden>
Sent by: <email address hidden>
05/24/2010 11:46 AM
Please respond to
Bug 353573 <email address hidden>

To
<email address hidden>
cc

Subject
[Bug 353573] Re: PHP Warnings after install

What version of PHP was used in the environment for this bug?

--
PHP Warnings after install
https://bugs.launchpad.net/bugs/353573
You received this bug notification because you are subscribed to Sahana-
Agasti.

Status in Sahana Agasti: New

Bug description:
Warnings
Warning: Call-time pass-by-reference has been deprecated; If you would
like
to pass it by reference, modify the declaration of
shn_location_get_descendants(). 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
/var/www/templevoad/sahana/mod/or/lib_or.inc on line 36

Warning: Call-time pass-by-reference has been deprecated; If you would
like
to pass it by reference, modify the declaration of shn_get_parents(). 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
/var/www/templevoad/sahana/mod/or/lib_or.inc on line 141
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
/var/www/templevoad/sahana/inc/lib_location.inc on line 113

Warning: Call-time pass-by-reference has been deprecated; If you would
like
to pass it by reference, modify the declaration of
shn_config_database_fetch(). 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
/var/www/templevoad/sahana/mod/admin/conf_admin.inc on line 128

I was about to promote sahana as a proof of concept project but i cannot
present it with these warnings popping up....
Is there a more stable release that I can use, that would not display
these
warnings? Please advise...

Revision history for this message
dot dot dot (dotdotdotdeactivated-deactivatedaccount) wrote :

Ahh yes, a commonly recurring warning with 5.3.0+ systems. It's the reason why I merged a new version of ADODB into the trunk a while back.

> It's a fairly easy fix, and I was considering doing it yesterday, think I
should proceed and push the code and you can merge it in?

Sure thing, just pass along the diff.

Changed in sahana-agasti:
assignee: nobody → cwis (charles-wisniewski)
Changed in sahana-agasti:
status: New → Fix Committed
Changed in sahana-agasti:
milestone: none → 0.9.0
Changed in sahana-agasti:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Related questions

Remote bug watches

Bug watches keep track of this bug in other bug trackers.