Ticket #243 (closed Bug: fixed)

Opened 13 months ago

Last modified 12 months ago

Validation: is_callable validation issue

Reported by: Maxximus Owned by:
Priority: minor Milestone: 2.1
Component: Core Version: 2.1
Keywords: validation Cc:

Description

In run_rule: is_callable with true as second parameter will only evaluate the first parameter as a possible function name (e.g. check if it is a string, or a valid array).

This does NOT mean the function will exist. so 'blah' will validate as true, but will give a PHP error if it doesn't exist.

Besides that, according to user comments (@ php.net) the results differ depending on PHP version.

Change History

Changed 12 months ago by armen

  • status changed from new to closed
  • resolution set to fixed

Fixed r1270

Note: See TracTickets for help on using tickets.