Project

General

Profile

Actions

Bug #38645

closed

New error_reporting settings cause notice "undefined constant E_DEPRECATED " with PHP 5.2

Added by Ivan Dharma Kartolo almost 12 years ago. Updated over 6 years ago.

Status:
Closed
Priority:
Must have
Assignee:
-
Category:
Performance
Target version:
Start date:
2012-07-04
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
4.5
PHP Version:
5.2
Tags:
Complexity:
Is Regression:
Sprint Focus:

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


Related issues 3 (0 open3 closed)

Related to TYPO3 Core - Bug #38691: Exclude E_STRICT on PHP 5.4ClosedPhilipp Gampe2012-07-05

Actions
Related to TYPO3 Core - Bug #39232: PHP error_reporting cannot be set properly, E_STRICT errors shown on PHP 5.4Closed2012-07-25

Actions
Follows TYPO3 Core - Bug #35154: Exclude E_STRICT from exceptionalErrors in PHP 5.4Closed2012-03-22

Actions
Actions #1

Updated by Ivan Dharma Kartolo almost 12 years ago

E_DEPRECATED exists since PHP 5.3.0. See http://php.net/manual/en/errorfunc.constants.php

Actions #2

Updated by Gerrit Code Review almost 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

Actions #3

Updated by Sven Juergens almost 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

Actions #4

Updated by Chris topher almost 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
Actions #5

Updated by Gerrit Code Review almost 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

Actions #6

Updated by Gerrit Code Review almost 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

Actions #7

Updated by Gerrit Code Review almost 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

Actions #8

Updated by Gerrit Code Review almost 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

Actions #9

Updated by Oliver Hader almost 12 years ago

Argh...

Actions #10

Updated by Oliver Hader almost 12 years ago

Ivan, what Linux distribution do you use - I'd like to find out how spread that issue is...

Actions #11

Updated by Ivan Dharma Kartolo almost 12 years ago

  1. CentOS 5.2
  2. Ubuntu 9.04

I know they are kinda old and not supported anymore (by distro) but some shared hoster still use it, rofl :)

Actions #12

Updated by Ivan Dharma Kartolo almost 12 years ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100
Actions #13

Updated by Riccardo De Contardi over 6 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF