Bug #38645
closedNew error_reporting settings cause notice "undefined constant E_DEPRECATED " with PHP 5.2
100%
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
Updated by Ivan Dharma Kartolo about 12 years ago
E_DEPRECATED exists since PHP 5.3.0. See http://php.net/manual/en/errorfunc.constants.php
Updated by Gerrit Code Review about 12 years ago
- Status changed from New to Under Review
Patch set 1 for branch TYPO3_4-5 has been pushed to the review server.
It is available at http://review.typo3.org/12611
Updated by Sven Juergens about 12 years ago
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
Updated by Chris topher about 12 years ago
- Subject changed from E_DEPRECATED in 4.5.17 to New error_reporting settings cause notice "undefined constant E_DEPRECATED " with PHP 5.2
Updated by Gerrit Code Review about 12 years ago
Patch set 1 for branch TYPO3_4-5 has been pushed to the review server.
It is available at http://review.typo3.org/12612
Updated by Gerrit Code Review about 12 years ago
Patch set 2 for branch TYPO3_4-5 has been pushed to the review server.
It is available at http://review.typo3.org/12612
Updated by Gerrit Code Review about 12 years ago
Patch set 3 for branch TYPO3_4-5 has been pushed to the review server.
It is available at http://review.typo3.org/12612
Updated by Gerrit Code Review about 12 years ago
Patch set 4 for branch TYPO3_4-5 has been pushed to the review server.
It is available at http://review.typo3.org/12612
Updated by Oliver Hader about 12 years ago
Ivan, what Linux distribution do you use - I'd like to find out how spread that issue is...
Updated by Ivan Dharma Kartolo about 12 years ago
- 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 :)
Updated by Ivan Dharma Kartolo about 12 years ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset eb317e77197fc2027fb1561757a4f90f3f02883a.
Updated by Riccardo De Contardi almost 7 years ago
- Status changed from Resolved to Closed