Mantis - Quercus
|
|||||
Viewing Issue Advanced Details | |||||
|
|||||
ID: | Category: | Severity: | Reproducibility: | Date Submitted: | Last Update: |
2257 | major | always | 12-14-07 09:06 | 12-17-07 10:40 | |
|
|||||
Reporter: | jredden | Platform: | |||
Assigned To: | ferg | OS: | |||
Priority: | normal | OS Version: | |||
Status: | closed | Product Version: | 3.1.3 | ||
Product Build: | Resolution: | fixed | |||
Projection: | none | ||||
ETA: | none | Fixed in Version: | 3.1.5 | ||
|
|||||
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 |
||||
Steps To Reproduce: | |||||
Additional Information: | resin pro 3.1.3 running on Ubuntu linux | ||||
Relationships | |||||
Attached Files: |
Notes | |||||
|
|||||
|
|