php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #55724 Fatal error: Call to undefined function
Submitted: 2011-09-19 03:40 UTC Modified: 2011-09-19 03:56 UTC
Votes:1
Avg. Score:4.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:1 (100.0%)
From: crackfan at qq dot com Assigned:
Status: Closed Package: Unknown/Other Function
PHP Version: 5.3.8 OS: windows 2003 sp2
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
46 - 11 = ?
Subscribe to this entry?

 
 [2011-09-19 03:40 UTC] 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";
}


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2011-09-19 03:56 UTC] crackfan at qq dot com
-Status: Open +Status: Closed
 [2011-09-19 03:56 UTC] crackfan at qq dot com
That's ok!other extension error!
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Apr 28 07:01:30 2024 UTC