我有以下工作守则:
$test = 123456 ;
$int = preg_match( /^d+$/ , $test, $matches);
print_r(array($int, $matches));
However when I execute it on codepad I get the error:
警告:前言:内部pcre_fullinfo()错误,第5行
但是,这部法典是用我自己的机器操作的(而且该法典应当被罚款)。
I need to distribute my code in the future so it would be bad if it would break depending on some config. So what is the reason codepad breaks on it?