Bug #70528 [Opn->Csd]: assert() with instanceof adds apostrophes around class name
| From: | laruence@php.net | Date: | Sun, 20 Sep 2015 02:51:29 +0000 |
| Subject: | Bug #70528 [Opn->Csd]: assert() with instanceof adds apostrophes around class name | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-196102@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=70528&edit=1
ID: 70528
Updated by: laruence@php.net
Reported by: php-bugs at majkl578 dot cz
Summary: assert() with instanceof adds apostrophes around
class name
-Status: Open
+Status: Closed
Type: Bug
Package: Scripting Engine problem
Operating System: Linux x86_64
PHP Version: 7.0.0RC3
Block user comment: N
Private report: N
New Comment:
Automatic comment on behalf of laruence@gmail.com
Revision: http://git.php.net/?p=php-src.git;a=commit;h=bb07905a4a34e3e7d6f1ebe94818dd88ba951dcb
Log: Fixed bug #70528 (assert() with instanceof adds apostrophes around class name)
Previous Comments:
------------------------------------------------------------------------
[2015-09-18 21:07:11] php-bugs at majkl578 dot cz
Description:
------------
In the script below there is a Foo\Bar class used in instanceof test inside assert().
When this assertion fails, warning/error is produced, but the class name is surrounded by
apostrophes.
Test script:
---------------
<?php
namespace Foo;
class Bar {}
assert(new \stdClass instanceof Bar);
Expected result:
----------------
Warning: assert(): assert(new \stdClass() instanceof Bar) failed
Actual result:
--------------
Warning: assert(): assert(new \stdClass() instanceof 'Bar') failed
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=70528&edit=1