php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #20792 callback_func() for failed new() or failed function calls
Submitted: 2002-12-03 09:38 UTC Modified: 2002-12-03 09:45 UTC
From: markhers at REMOVE dot green-ant dot com Assigned:
Status: Closed Package: Feature/Change Request
PHP Version: 4.3.0RC2 OS: All (Mainly Linux/Mac OS X)
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: markhers at REMOVE dot green-ant dot com
New email:
PHP Version: OS:

 

 [2002-12-03 09:38 UTC] markhers at REMOVE dot green-ant dot com
At work, I have had my programmers code their work into the following naming conventions which basically read:

	class.{classname}.phps
	function.{functionname}.phps

Each file contains the code solely for that particular function or class, and then we have a system which autoloads all of these files at startup as if they were a framework.

However, as I look at our performance, which is not optimal considering the number of files we are loading per request when we only need a fraction of the code loaded, it seems like it would be a huge boon to have two new callbacks added to PHP:

	class_callback_func()
	function_callback_func()

Granted, each of these callbacks would have a price attached to them, but it would allow programmers to, and possibly positively influence them to, develop a 30 MB codebase, and then go wild worrying about your core logic instead of include()s/require()s/auto_prepends, while PHP automagically loads the proper support files to facilitate their programming.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-12-03 09:45 UTC] derick@php.net
Zend Engine 2 will support this, see:
http://cvs.php.net/co.php/ZendEngine2/ZEND_CHANGES?login=2&r=1.43 (it's not documented yet there though and I couldn't find any docs in it this quickly).


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Wed Sep 11 22:01:26 2024 UTC