Edit report at https://bugs.php.net/bug.php?id=55724&edit=1
ID: 55724
User updated by: crackfan at qq dot com
Reported by: crackfan at qq dot com
Summary: Fatal error: Call to undefined function
-Status: Open
+Status: Closed
Type: Bug
Package: Unknown/Other Function
Operating System: windows 2003 sp2
PHP Version: 5.3.8
Block user comment: N
Private report: N
New Comment:
That's ok!other extension errorï¼
Previous Comments:
------------------------------------------------------------------------
[2011-09-19 03:40:04] crackfan at qq dot com
Description:
------------
php5.3.8 usually reportï¼Fatal error: Call to undefined function
but xxx function exists.
Test script:
---------------
function is_ascii($string) {
return preg_match('%^(?:
[\x09\x0A\x0D\x20-\x7E] # ASCII
|[\xC2-\xDF][\x80-\xBF] # non-overlong 2-byte
)*$%xs', $string);
}
$str = "123asdï¼";
if(is_ascii($str)) {
echo "ansi";
} else {
echo "Not ansi";
}
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=55724&edit=1