TapanB

Active Member
Nov 29, 2004
40
0
156
Hi,

I was running php 5.3.27 and using EasyApache I upgraded to 5.4.17.
But as soon as I upgraded the putenv command stopped working.

Stopped working in the sense that it was not changing the timezone as it used to.

Hence when i downgraded back to 5.3.27 it again started working.
There was no error message whatsoever. Hence I am not sure why it was not working.

I was simply doing $res = putenv ("TZ=Europe/London"); and it was returning 1.
So i assume that it ran successfully but it was not changing the timezone as it was expected to do so.

What is the issue ????

Thanks.
 

TapanB

Active Member
Nov 29, 2004
40
0
156
Hi,

Why its not throwing error that invalid function etc. instead of returning 1 ?

Thanks.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,913
2,202
363
I was not able to find any documentation on the PHP website to determine if that was the intended behavior after support was removed for this function. You may want to submit a bug report directly to PHP via:

PHP - Submit A Bug Report

Thank you.