|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #20799 Able to call function when reaching a certain line in a certain file
Submitted: 2002-12-03 15:43 UTC Modified: 2013-07-12 13:06 UTC
From: powerblade at mail dot dk Assigned:
Status: Wont fix Package: *General Issues
PHP Version: 4.2.3 OS: Windows XP
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2002-12-03 15:43 UTC] powerblade at mail dot dk
The reason i need this feature is when people wants to make "hacks" for scripts. Then they often modify the scripts a bit, and add lines everywhere in the script. If you then distribute the hack, you need to tell them where in the script they add the lines. The problem is they already have other hacks installed, so it doesn't look the same. So i thought of a trigger_line() function. load the function with a parameter of filename, line number and function to run, then when it reaches that file/line it runs the function, to do what it needs to do. Then it's easy to have a bunch of hacks to a script, without modifying the code. This would be very very usefull. 


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2013-07-12 13:06 UTC]
-Status: Open +Status: Wont fix -Package: Feature/Change Request +Package: *General Issues
 [2013-07-12 13:06 UTC]
No response in 11 years, bad idea (application framework should offer proper hooks), and also outdated since PHP 5 offers full OO features.
PHP Copyright © 2001-2019 The PHP Group
All rights reserved.
Last updated: Mon Jul 22 03:01:26 2019 UTC