views:

205

answers:

2

Hello,

We're moving from php4 to php5, and we get this warning on one of our developers machines, but not in our php5 test setup:

Deprecated: Call-time pass-by-reference has been deprecated in C:\Workspace\Prelive\www\includes\filename etc..

The code seems to be the same in both environments, and the php.ini on the test environment has this setup for errors:

error_reporting = E_STRICT | E_ALL

We could ofcourse just fix the code so the warning will go away, but my main concern is why the test environment is not complaining about it.

+1  A: 

You've probably checked this already, but is

display_errors = On

set in both ini files?

Neil Aitken
Or that, of course. More likely.
Ionuț G. Stan
it's display_errors = 1 in the test env., which is ok I think..
Maarten
+2  A: 

There is a php.ini directive called allow_call_time_pass_reference, which may be off in the environment which does not complain about it.

Ionuț G. Stan
+1 for thinking the same :)
Vinko Vrsalovic
Thanks, this was it. Some background, we started with an almost clean php.ini for the test environment, which makes it default to allow_call_time_pass_reference being on. This devel machine has the setting turned off, which is apparently the default on the wamp environment the particular devel is using
Maarten