Open GoogleCodeExporter opened 9 years ago
Hello wangyong,
It seems that the problem is in your business rule, could you please tell me
what you put as the business rule if you entered one so that I can try to
figure out what the problem is.
Thanks in advance.
Original comment by Christof...@gmail.com
on 10 Jan 2011 at 9:45
Hi: My business rule is blank.
Original comment by wangyong...@gmail.com
on 11 Jan 2011 at 6:18
I found where the problem is, I enabled Zend Optimizer, so the
get_defined_functions() returned some functions which name is unreadable, and
the preg_match can not execute normally, You can test it.
Original comment by wangyong...@gmail.com
on 12 Jan 2011 at 7:04
check this page:
http://www.justskins.com/forums/39670-new-get_defined_functions-returns-58267.ht
ml
Original comment by wangyong...@gmail.com
on 12 Jan 2011 at 7:07
Hello wangyong,
I read the page you linked me but I didn't find anything useful there except
that the get_defined_functions() returns invalid values when using the Zend
Optimizer.
Do you have a suggestion for how to fix this?
Original comment by Christof...@gmail.com
on 12 Jan 2011 at 8:07
Exact same problem here. Any fix yet?
Thanks.
Original comment by rodrigo....@gmail.com
on 18 Jan 2011 at 7:33
I think we could check the function name before perform preg_match, if the name
contains invalid chars, ignore it.
Original comment by wangyong...@gmail.com
on 19 Jan 2011 at 9:54
I will see what can be done about this as soon as I have time.
Original comment by Christof...@gmail.com
on 6 Feb 2011 at 11:38
[deleted comment]
when using the Zend, the function preg_match('/'.$f.'\ *\({1}/', $code)
passed names like uer1qc[<lm*ujhb0
which is why the error occurs.
you must either exclude such functions from scanning, or escape special
characters using the preg_quote.
foreach( $functions as $f )
if( preg_match('/'.preg_quote($f).'\ *\({1}/', $code)>0 )
return null; // Function call found, not safe for eval.
Original comment by vasilyev...@gmail.com
on 30 Nov 2011 at 4:12
sory must be preg_quote($f, "/")
Original comment by vasilyev...@gmail.com
on 30 Nov 2011 at 4:16
Original issue reported on code.google.com by
wangyong...@gmail.com
on 10 Jan 2011 at 8:22