Bug #10428

Wrong Namespace scope when using PhpFrontend

Added by Robert Lemke over 10 years ago. Updated over 10 years ago.

Status:
Resolved
Priority:
Should have
Assignee:
Category:
Cache
Start date:
2010-10-25
Due date:
% Done:

100%

Estimated time:
PHP Version:
Has patch:
Complexity:

Description

The

__halt_compiler()
instruction in combination with the require mechanism used by the PhpFrontend can cause classes originally being in a global scope to be loaded in the namespace of the last class which has been loaded by the PhpFrontend.

This seems to be a bug in PHP, but until now we were not able to isolate it and write a separate exploit.


Files

bug_10428.zip (2.29 KB) bug_10428.zip Christopher Hlubek, 2010-10-25 13:53
#1

Updated by Christopher Hlubek over 10 years ago

I created a simple test case where the problem can be reproduced.

#2

Updated by Robert Lemke over 10 years ago

  • Status changed from Accepted to Resolved
  • % Done changed from 0 to 100

Also available in: Atom PDF