php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #45362 Apache folder
Submitted: 2008-06-26 03:43 UTC Modified: 2008-06-26 04:22 UTC
From: david71rj at gmail dot com Assigned:
Status: Not a bug Package: Directory function related
PHP Version: 5.2.6 OS: Windows Vista SP1
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: david71rj at gmail dot com
New email:
PHP Version: OS:

 

 [2008-06-26 03:43 UTC] david71rj at gmail dot com
Description:
------------
- See "Reproduce code" -

Reproduce code:
---------------
class Name
{
 function __descruct()
 {
  $this->Save();
 }

 function Save()
 {
  echo realpath("./");
 }
}

echo realpath("./")."\n";
$test = new Name();

Expected result:
----------------
C:/project/test
C:/wampserver/bin/apache/apache2.2.8 <-- (o.O)

Actual result:
--------------
C:/project/test
C:/project/test

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2008-06-26 03:48 UTC] david71rj at gmaill dot com
Too works with:

class Name
{
 function __destruct()
 {
  echo realpath("./");
 }
}

Don't is needly call a function.
 [2008-06-26 03:54 UTC] david71rj at gmail dot com
The bug occur only if you don't unset variable-class ($test).
If use unset($test) work perfectly.

But, I still feel a bug.
It can be very serious.
 [2008-06-26 04:00 UTC] david71rj at gmail dot com
-Don't disponible to public-
 [2008-06-26 04:22 UTC] david71rj at gmail dot com
My fault. Bad configuration.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Oct 27 16:01:27 2024 UTC