php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #39659 CGI crash on certain constuctors
Submitted: 2006-11-28 12:56 UTC Modified: 2006-11-28 15:12 UTC
From: mark at temporal-solutions dot co dot uk Assigned:
Status: Closed Package: Reproducible crash
PHP Version: 5.2.0 OS: Windows XP SP2
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: mark at temporal-solutions dot co dot uk
New email:
PHP Version: OS:

 

 [2006-11-28 12:56 UTC] mark at temporal-solutions dot co dot uk
Description:
------------
PHP causing php-cgi.exe crash when creating child class with default constructor values.

$this->sp_user_count = new oopi_Label($this);

oopi_label is class oopi_Label extends oopi_Control which just happens to have constructor 

__construct($parent, $id = '', $value = NULL)

somehow just calling it with $this resulted in PHP self destructing


Reproduce code:
---------------
class oopi_Control
{
   public $id;

   public function __construct($parent, $id = '', $value = NULL)
   {
     ...
     $this->id = $id;
     ...
   }
};

class oopi_Label extends oopi_Control
{
  ...
};

$sp_user_count = new oopi_Label($this);

Expected result:
----------------
Created object with default id of ''

Actual result:
--------------
No results - CGI crash reading null pointer and returning no headers.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2006-11-28 12:57 UTC] mark at temporal-solutions dot co dot uk
Sorry, I forgot to mention its running on IIS 5.1 with all patches applied.
 [2006-11-28 13:00 UTC] tony2001@php.net
Thank you for this bug report. To properly diagnose the problem, we
need a short but complete example script to be able to reproduce
this bug ourselves. 

A proper reproducing script starts with <?php and ends with ?>,
is max. 10-20 lines long and does not require any external 
resources such as databases, etc. If the script requires a 
database to demonstrate the issue, please make sure it creates 
all necessary tables, stored procedures etc.

Please avoid embedding huge scripts into the report.


 [2006-11-28 15:12 UTC] mark at temporal-solutions dot co dot uk
Incorrect reporting by myself; new bug opened at http://bugs.php.net/bug.php?id=39661 with localised error.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Apr 30 05:01:30 2024 UTC