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
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please — but make sure to vote on the bug!
Your email address:
MUST BE VALID
Solve the problem:
26 + 38 = ?
Subscribe to this entry?

 
 [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

Add a Patch

Pull Requests

Add a Pull Request

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-2022 The PHP Group
All rights reserved.
Last updated: Mon Nov 28 11:05:53 2022 UTC