After doing the following typo in PHP 5.2.9: $string = '_'. $object-type (Supposed to be $object->type) I got two notices:

Notice: Undefined offset: 4096 in C:\dev\Aspedia\Projects\Drupal\clean\sites\all\modules\devel\devel.module on line 462, and the same again on line 472.

Seems you are missing the constant E_RECOVERABLE_ERROR(4096) which was added in php 5.2. (There are also a few others added in 5.3).

Also, as a side issue, could it be useful for readability sakes to create the $types array using the actual PHP constants rather than their number?

PHP docs for reference: http://php.net/manual/en/errorfunc.constants.php

CommentFileSizeAuthor
#3 devel-394078-1.patch1.42 KBcdale
#2 devel-394078.patch1.39 KBcdale
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

moshe weitzman’s picture

Please provide a patch if possible.

cdale’s picture

FileSize
1.39 KB

Patch attached.

cdale’s picture

FileSize
1.42 KB

Oops. I just realized why the numbers are a better option than the constants. Not all constants are defined in all version of PHP. :) Proper patch attached.

cdale’s picture

Status: Active » Needs review
moshe weitzman’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.