php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #73572 [ZH] class_exists函数的参数1:class_name区分大小写
Submitted: 2016-11-21 09:57 UTC Modified: 2016-11-23 06:18 UTC
From: liguottkl at 163 dot com Assigned: jhdxr (profile)
Status: Closed Package: Translation problem
PHP Version: 5.6Git-2016-11-21 (Git) OS: ubuntu14
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: liguottkl at 163 dot com
New email:
PHP Version: OS:

 

 [2016-11-21 09:57 UTC] 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 


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2016-11-21 12:38 UTC] cmb@php.net
-Summary: class_exists函数的参数1:class_name区分大小写 +Summary: [ZH] class_exists函数的参数1:class_name区分大小写
 [2016-11-23 06:17 UTC] 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-23 06:18 UTC] jhdxr@php.net
-Status: Open +Status: Closed -Assigned To: +Assigned To: jhdxr
 [2016-11-23 06:18 UTC] jhdxr@php.net
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.


 [2020-12-30 10:47 UTC] nikic@php.net
Automatic comment on behalf of jhdxr
Revision: http://git.php.net/?p=doc/zh.git;a=commit;h=06d392a0293ce3d5e1b349ad2f0787ba84b39115
Log: Fixed bug #73572  [ZH] class_exists函数的参数1:class_name区分大小写
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Wed May 29 10:01:32 2024 UTC