Mantis Bugtracker
  

Viewing Issue Simple Details Jump to Notes ] View Advanced ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0002257 [Quercus] major always 12-14-07 09:06 12-17-07 10:40
Reporter jredden View Status public  
Assigned To ferg
Priority normal Resolution fixed  
Status closed   Product Version 3.1.3
Summary 0002257: dynamic idoim fails in quercus
Description this idiom fails:

    static function int($string, $length=null) {
        $length = $length ? "{".$length."}" : "+";
        $pattern = "/^[0-9]".$length."$/";
        return preg_match($pattern, $string);
    }

    static function required($var_array, $var_name, $func_name) {
        return !empty($var_array[$var_name]) && validate::$func_name($var_array[$var_name]);
    }

called with

    $parameter = Array('dealerID'=>'55554');
    $required = validate :: required($parameter, "dealerID", "int");
    echo 'validate :: required:' . $required . '
';

The error message is:

home/_php/classes/validate.php:318: Fatal Error: validate::$func_name is an undeclared static property
Additional Information resin pro 3.1.3 running on Ubuntu linux
Attached Files

- Relationships

- Notes
(0002582)
ferg
12-17-07 10:40

php/069j, php/069k, php/369j, php/369k
 

- Issue History
Date Modified Username Field Change
12-14-07 09:06 jredden New Issue
12-17-07 10:40 ferg Note Added: 0002582
12-17-07 10:40 ferg Assigned To  => ferg
12-17-07 10:40 ferg Status new => closed
12-17-07 10:40 ferg Resolution open => fixed
12-17-07 10:40 ferg Fixed in Version  => 3.1.5


Mantis 1.0.0rc3[^]
Copyright © 2000 - 2005 Mantis Group
29 total queries executed.
26 unique queries executed.
Powered by Mantis Bugtracker