php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #23194 Crash when using __get
Submitted: 2003-04-13 22:59 UTC Modified: 2003-05-28 01:00 UTC
Votes:1
Avg. Score:5.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:0 (0.0%)
Same OS:1 (100.0%)
From: lphuberdeau at sympatico dot ca Assigned:
Status: No Feedback Package: Scripting Engine problem
PHP Version: 5CVS-2003-04-13 (dev) OS: linux (RH9)
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: lphuberdeau at sympatico dot ca
New email:
PHP Version: OS:

 

 [2003-04-13 22:59 UTC] lphuberdeau at sympatico dot ca
Well, I don't know exacly what caused the bug, but I know I could reproduce it.

Basically, Apache2(2.0.45) crashes when I run a certain script. I use PHP5 of April 13th at 19:30 right now.

I was testing new features. Everything worked well (nice job guys) until I placed a throw( new Exception( "Variable not found" )); in function __get($name){}.

--
class foo
{
  function __get( $name )
  {
    throw( new Exception( "Variable not found" ));
  }
}

$o = new foo;

try
{
  echo $o->bar;
}
catch( Exception $e )
{
  echo $e;
}
--

If you need more details, feel free to contact me.

--
Louis-Philippe Huberdeau

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-05-28 01:00 UTC] php-bugs at lists dot php dot net
No feedback was provided for this bug for over 2 weeks, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
 [2003-06-21 13:26 UTC] cunha17 at uol dot com dot br
I'm using PHP5-200306191730.

When any exception is raised inside a __get, __set or __call it leads to a segmentation fault.

Cristiano Duarte.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Dec 21 12:01:31 2024 UTC