php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #52673 Freeze if a class namend ArrayList shall be instantiated
Submitted: 2010-08-23 04:12 UTC Modified: 2013-02-18 00:34 UTC
From: blue-tidus159 at hotmail dot com Assigned:
Status: No Feedback Package: Scripting Engine problem
PHP Version: 5.3SVN-2010-08-23 (snap) OS: Windows 7 x64
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: blue-tidus159 at hotmail dot com
New email:
PHP Version: OS:

 

 [2010-08-23 04:12 UTC] 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

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2010-12-05 14:25 UTC] felipe@php.net
-Status: Open +Status: Feedback
 [2010-12-05 14:25 UTC] felipe@php.net
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.
 [2013-02-18 00:34 UTC] php-bugs at lists dot php dot net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Open". Thank you.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Dec 21 17:01:58 2024 UTC