** Changed in: phpdevshell
       Status: Fix Committed => Fix Released

-- 
PHP DateTime bug may cause problems within PHPDevShell
https://bugs.launchpad.net/bugs/375288
You received this bug notification because you are a member of
PHPDevShell, which is subscribed to PHPDevShell.

Status in Open Source php gui type development framework.: Fix Released

Bug description:
There are some function calls within PHPDevShell that uses the DateTimeZone and 
DateTime PHP classes. I discovered that the DateTimeZone seemingly causes the 
script to hang if it's constructor is called with an empty parameter. I'm not 
sure if DateTime will do the same thing.

The following statement within the $core->user_server_tz_diff() function will 
cause the script to hang if the $configuration['user_timezone'] variable is 
null/empty.

$tz = new DateTimeZone($configuration['user_timezone']);

I recommend that any function using the DateTime and DateTimeZone classes 
should check that the parameters they pass to the constructors of these classes 
are never empty to avoid the script from hanging.



_______________________________________________
Mailing list: https://launchpad.net/~phpdevshell
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~phpdevshell
More help   : https://help.launchpad.net/ListHelp

Reply via email to