php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #11615 change/modify parent syntax
Submitted: 2001-06-22 07:01 UTC Modified: 2010-11-24 13:42 UTC
From: nelson at vericel dot com Assigned: jani (profile)
Status: Closed Package: Class/Object related
PHP Version: 4.0.5 OS: Linux
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 this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: nelson at vericel dot com
New email:
PHP Version: OS:

 

 [2001-06-22 07:01 UTC] nelson at vericel dot com
it would be nice if the parent syntax was extended so that the parent class constructor could be referenced with

parent::parent()


This way, when a subclass wants to call the parent constructor, it can, without referring to the class.  This makes current documentation more "true" in that it is more possible to chance the inheritance tree without breaking things.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2010-11-24 13:42 UTC] jani@php.net
-Status: Open +Status: Closed -Package: Feature/Change Request +Package: Class/Object related -Assigned To: +Assigned To: jani
 [2010-11-24 13:42 UTC] jani@php.net
parent::__construct() is possible nowadays..
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat May 04 08:01:29 2024 UTC