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] [email protected]

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

Reply via email to