Bug #52673 [Opn->Fbk]: Freeze if a class namend ArrayList shall be instantiated

From: Date: Sun, 05 Dec 2010 13:25:17 +0000
Subject: Bug #52673 [Opn->Fbk]: Freeze if a class namend ArrayList shall be instantiated
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-156763@lists.php.net to get a copy of this message
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)

« previous php.bugs (#156763) next »