Doc #73572 [Opn->Csd]: [ZH] class_exists彿°çåæ°1:class_nameåºå大å°å
| From: | jhdxr@php.net | 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