Bug #55809 [Com]: PHP 5.3.5-1ubuntu7.2ppa1~natty
| From: | petr at bugyik dot cz | Date: | Thu, 29 Sep 2011 05:36:01 +0000 |
| Subject: | Bug #55809 [Com]: PHP 5.3.5-1ubuntu7.2ppa1~natty | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-163964@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=55809&edit=1
ID: 55809
Comment by: petr at bugyik dot cz
Reported by: petr at bugyik dot cz
Summary: PHP 5.3.5-1ubuntu7.2ppa1~natty
Status: Bogus
Type: Bug
Package: Strings related
Operating System: ubuntu
PHP Version: 5.3SVN-2011-09-28 (SVN)
Block user comment: N
Private report: N
New Comment:
I thought it was a bug, because the creation of the classic instances using new
Bar() works (without complete fully qualified name).
Previous Comments:
------------------------------------------------------------------------
[2011-09-28 23:26:55] cataphract@php.net
Sorry, but your problem does not imply a bug in PHP itself. For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system
is not the
appropriate forum for asking support questions. Due to the volume
of reports we can not explain in detail here why your report is not
a bug. The support channels will be able to provide an explanation
for you.
Thank you for your interest in PHP.
http://php.net/manual/en/language.namespaces.dynamic.php
------------------------------------------------------------------------
[2011-09-28 20:31:40] petr at bugyik dot cz
Description:
------------
Creating an instance with string
(http://www.php.net/manual/en/language.oop5.basic.php#language.oop5.basic.new)
not accepted actual namespace.
Test script:
---------------
http://goo.gl/wh6U4
Expected result:
----------------
No error
Actual result:
--------------
[o5@sandy]$ php Foo.php
PHP Fatal error: Class 'Bar' not found in /home/o5/www/test/bug/Foo.php on line
11
PHP Stack trace:
PHP 1. {main}() /home/o5/www/test/bug/Foo.php:0
PHP 2. Foo\Foo->__construct() /home/o5/www/test/bug/Foo.php:15
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=55809&edit=1