Full error codes I'm getting:

Notice: Use of undefined constant FILTER_SANITIZE_FULL_SPECIAL_CHARS - assumed 'FILTER_SANITIZE_FULL_SPECIAL_CHARS' in Prometheus::register() (line 77 of D:\Web_Public\Prometheus\sites\all\modules\prometheus\classes\prometheus.class.php).
Notice: Undefined index: DEFAULTS in Prometheus::register() (line 77 of D:\Web_Public\Prometheus\sites\all\modules\prometheus\classes\prometheus.class.php).
Notice: Undefined index: paths in Prometheus::register_class() (line 209 of D:\Web_Public\Prometheus\sites\all\modules\prometheus\classes\prometheus.class.php).

Comments

Akaoni’s picture

Patch for 7.x-1.x:

Akaoni’s picture

Status: Active » Needs review

CNR

Akaoni’s picture

Issue summary: View changes

Added more notices.

Akaoni’s picture

Title: "Use of undefined constant" Notice in PHP 5.2.* » Error Notices in PHP 5.2.*
StatusFileSize
new2.11 KB

New patch for all notices:

slobo’s picture

What will happen on PHP <5.3.3 if someone uses FILTER_SANITIZE_FULL_SPECIAL_CHARS in their input sanitization? Would it be a graceful failure / would the user be notified that the module won't perform as expected?
Perhaps it is better not to include FILTER_SANITIZE_FULL_SPECIAL_CHARS as the available mapping option in that case, or have filter_full_special_chars revert to filter_special_chars, but that would need to be documented.

The other part of the patch looks good.

Akaoni’s picture

It gracefully falls back to use the FILTER_SANITIZE_SPECIAL_CHARS filter:
http://www.php.net/manual/en/filter.filters.sanitize.php

We'd probably need to document this.

Akaoni’s picture

Akaoni’s picture

Issue tags: +refactor

Add refactor tag.

Akaoni’s picture

Issue summary: View changes

Updated code block formatting