Bug #38645
closed
New error_reporting settings cause notice "undefined constant E_DEPRECATED " with PHP 5.2
Added by Ivan Dharma Kartolo over 12 years ago.
Updated about 7 years ago.
Description
After #35154 updating to 4.5.17 shows the following PHP Notice:
PHP Notice: Use of undefined constant E_DEPRECATED - assumed 'E_DEPRECATED' in typo3_src-4.5.17/typo3/init.php on line 69
Problem is, that the site still uses PHP 5.2.
Since TYPO3 4.5.x should be still working with PHP 5.2, I thinks the line
error_reporting(E_ALL & ~(E_STRICT | E_NOTICE | E_DEPRECATED));
should be change to
error_reporting(E_ALL & ~(E_STRICT | E_NOTICE));
in typo3/init.php
Thanks,
Ivan
- Status changed from New to Under Review
same Problem here.
There was also this change
- if (defined('E_DEPRECATED')) {
- error_reporting(E_ALL ^ E_NOTICE ^ E_DEPRECATED);
- } else {
- error_reporting(E_ALL ^ E_NOTICE);
- }
+ error_reporting(E_ALL & ~(E_STRICT | E_NOTICE | E_DEPRECATED));
in
typo3_src-4.5.17/typo3/thumbs.php
typo3_src-4.5.17/index.php
typo3_src-4.5.17/typo3/install/index.php
- Subject changed from E_DEPRECATED in 4.5.17 to New error_reporting settings cause notice "undefined constant E_DEPRECATED " with PHP 5.2
Ivan, what Linux distribution do you use - I'd like to find out how spread that issue is...
- CentOS 5.2
- Ubuntu 9.04
I know they are kinda old and not supported anymore (by distro) but some shared hoster still use it, rofl :)
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
- Status changed from Resolved to Closed
Also available in: Atom
PDF