Bug #52673 [Opn->Fbk]: Freeze if a class namend ArrayList shall be instantiated
Edit report at http://bugs.php.net/bug.php?id=52673&edit=1
ID: 52673
Updated by: felipe@php.net
Reported by: blue-tidus159 at hotmail dot com
Summary: Freeze if a class namend ArrayList shall be
instantiated
-Status: Open
+Status: Feedback
Type: Bug
Package: Scripting Engine problem
Operating System: Windows 7 x64
PHP Version: 5.3SVN-2010-08-23 (snap)
Block user comment: N
Private report: N
New Comment:
Please try using this snapshot:
http://snaps.php.net/php5.3-latest.tar.gz
For Windows:
http://windows.php.net/snapshots/
I can't reproduce it.
Previous Comments:
------------------------------------------------------------------------
[2010-08-23 04:12:39] blue-tidus159 at hotmail dot com
Description:
------------
I wanted to instantiate a object of the class ArrayList but did not
define a "use ...\ArrayList" and everything hung up. No response was
send from the server, neither a error message nor an empty page.
Test script:
---------------
namespace test;
class A{
public function __construct(){
$arr = new ArrayList();
}
}
-----
namespace test2;
class ArrayList{...}
-----
namespace test3;
$class = new ReflectionClass('A');
$aObj = $class->newInstance(null);
Expected result:
----------------
Error, test3\ArrayList was not found
Actual result:
--------------
Endless loop
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/bug.php?id=52673&edit=1
Thread (3 messages)