Anonymous | Login | Signup for a new account | 12-17-2024 08:35 PST |
Main | My View | View Issues | Change Log | Docs |
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 | |||||||||
|
Mantis 1.0.0rc3[^]
Copyright © 2000 - 2005 Mantis Group
29 total queries executed. 26 unique queries executed. |