Hello,
I updated to 4.2.2 and PHP 5.30 on Win XP Pro.
The following error messages appear on startup of PGV:
Deprecated: Function set_magic_quotes_runtime() is deprecated in H:\GedView\includes\session.php on line 174
ERROR 2: date() [function.date]: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Europe/Paris' for '2.0/DST' instead
0 Error occurred on in function date
1 called from line 308 of file session.php in function require_once
2 called from line 79 of file config.php in function require
3 called from line 28 of file index.php
Warning: date() [function.date]: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Europe/Paris' for '2.0/DST' instead in H:\GedView\includes\session.php on line 308
Deprecated: Function eregi() is deprecated in H:\GedView\includes\session_spider.php on line 230
Deprecated: Function eregi() is deprecated in H:\GedView\includes\session_spider.php on line 230
Deprecated: Function eregi() is deprecated in H:\GedView\includes\session_spider.php on line 230
Deprecated: Function eregi() is deprecated in H:\GedView\includes\session_spider.php on line 230
...and so forth.
Where to change and access the timezone qualifier?
What to do to eliminate the function eregi() error?
Thanks for any good ideas!
EJF
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Anonymous
-
2009-08-17
There is, I believe, a lot of work to be done in PGV (and many other PHP programmes) to make them compatible with PHP 5.3. There is an existing bug-tracker here that might help you:
[Date]
; Defines the default timezone used by the date functions
; http://php.net/date.timezone
date.timezone = Europe/London
And in the section in php.ini called
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; Error handling and logging ;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
use the following line
error_reporting = E_ALL & ~E_DEPRECATED
which will prevent the printing of the "Deprecated" lines.
Personally I haven't managed to get php 5.3 to work very well at all on XP ... The MySQL libraries in it are old and even PDO doesn't work with my MySQL db there. So I've left php 5.2.10 running on that machine.
Mark
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hello,
I updated to 4.2.2 and PHP 5.30 on Win XP Pro.
The following error messages appear on startup of PGV:
Deprecated: Function set_magic_quotes_runtime() is deprecated in H:\GedView\includes\session.php on line 174
ERROR 2: date() [function.date]: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Europe/Paris' for '2.0/DST' instead
0 Error occurred on in function date
1 called from line 308 of file session.php in function require_once
2 called from line 79 of file config.php in function require
3 called from line 28 of file index.php
Warning: date() [function.date]: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Europe/Paris' for '2.0/DST' instead in H:\GedView\includes\session.php on line 308
Deprecated: Function eregi() is deprecated in H:\GedView\includes\session_spider.php on line 230
Deprecated: Function eregi() is deprecated in H:\GedView\includes\session_spider.php on line 230
Deprecated: Function eregi() is deprecated in H:\GedView\includes\session_spider.php on line 230
Deprecated: Function eregi() is deprecated in H:\GedView\includes\session_spider.php on line 230
...and so forth.
Where to change and access the timezone qualifier?
What to do to eliminate the function eregi() error?
Thanks for any good ideas!
EJF
There is, I believe, a lot of work to be done in PGV (and many other PHP programmes) to make them compatible with PHP 5.3. There is an existing bug-tracker here that might help you:
https://sourceforge.net/tracker/?func=detail&aid=2818804&group_id=55456&atid=634867
You set the date.timezone in php.ini
[Date]
; Defines the default timezone used by the date functions
; http://php.net/date.timezone
date.timezone = Europe/London
And in the section in php.ini called
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; Error handling and logging ;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
use the following line
error_reporting = E_ALL & ~E_DEPRECATED
which will prevent the printing of the "Deprecated" lines.
Personally I haven't managed to get php 5.3 to work very well at all on XP ... The MySQL libraries in it are old and even PDO doesn't work with my MySQL db there. So I've left php 5.2.10 running on that machine.
Mark