Doc #73572 [Opn->Csd]: [ZH] class_exists函数的参数1:class_name区分大小写

From: Date: Wed, 23 Nov 2016 06:18:04 +0000
Subject: Doc #73572 [Opn->Csd]: [ZH] class_exists函数的参数1:class_name区分大小写
References: 1  Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-14132@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=73572&edit=1 ID: 73572 Updated by: jhdxr@php.net Reported by: liguottkl at 163 dot com Summary: [ZH] class_exists函数的参数1:class_name区分大小写 -Status: Open +Status: Closed Type: Documentation Problem Package: Translation problem Operating System: ubuntu14 PHP Version: 5.6Git-2016-11-21 (Git) -Assigned To: +Assigned To: jhdxr Block user comment: N Private report: N New Comment: This bug has been fixed in the documentation's XML sources. Since the online and downloadable versions of the documentation need some time to get updated, we would like to ask you to be a bit patient. Thank you for the report, and for helping us make our documentation better. Previous Comments: ------------------------------------------------------------------------ [2016-11-23 06:17:08] jhdxr@php.net Automatic comment from SVN on behalf of jhdxr Revision: http://svn.php.net/viewvc/?view=revision&revision=341103 Log: Fixed bug #73572 [ZH] class_exists函数的参数1:class_name区分大小写 ------------------------------------------------------------------------ [2016-11-21 09:57:36] liguottkl at 163 dot com Description: ------------ --- From manual page: http://www.php.net/function.class-exists --- bool class_exists ( string $class_name [, bool $autoload = true ] ) 参数 class_name 类名。名字的匹配是大小写不敏感的。(此处错误! 应该是区分大小写) Test script: --------------- namespace app\libs; class Common { } $class = 'app\\libs\\common'; var_dump(class_exists($class)); // 返回false $class = 'app\\libs\\Common'; var_dump(class_exists($class)); // 返回true ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=73572&edit=1

« previous php.doc.bugs (#14132) next »