php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #7766 not OO until automatic class destructor is added
Submitted: 2000-11-12 03:24 UTC Modified: 2002-01-06 11:52 UTC
From: shelby at DownloadFAST dot com Assigned:
Status: Closed Package: Feature/Change Request
PHP Version: 4.0.3pl1 OS: FreeBSD Apache
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: shelby at DownloadFAST dot com
New email:
PHP Version: OS:

 

 [2000-11-12 03:24 UTC] shelby at DownloadFAST dot com
The lack of an automatic class destructor makes it impossible to make code completely OO.

For example, we have a Table class which outputs an HTML <TABLE> with error checking.  It is impossible to detect the case where Table::EndTable() is not called (</TABLE> not issued) because class destructors do not exist in the PHP4 language.

PLEASE CORRECT THIS GLARING DEFICIENCY ASAP!

I am a prolific commercial programming of $million products (Corel Painter, Cool Page, etc).  PHP4 is a an incredible tool.  We are considering purchasing the new compiler technology.  So please fix this silly omission.  Please.  Please.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-11-12 04:00 UTC] rasmus@php.net
Nobody ever claimed that PHP was an OO language.
 [2000-11-12 04:21 UTC] shelby at DownloadFAST dot com
Then why add classes?  Are you implying to businesses that if they invest in your features, you do not intend to complete them?
 [2000-11-12 04:33 UTC] shelby at DownloadFAST dot com
Then why add classes?  Are you implying to businesses that if they invest in your features, you do not intend to complete them?
 [2000-11-12 04:49 UTC] stas@php.net
Moved to feature requests

 [2002-01-06 11:52 UTC] jan@php.net
we'll have destructors with ZE2 (PHP5).  closing
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Wed May 07 21:01:30 2025 UTC