Edit report at https://bugs.php.net/bug.php?id=20799&edit=1
ID: 20799 Updated by: maar...@php.net Reported by: powerblade at mail dot dk Summary: Able to call function when reaching a certain line in a certain file -Status: Open +Status: Wont fix Type: Feature/Change Request -Package: Feature/Change Request +Package: *General Issues Operating System: Windows XP PHP Version: 4.2.3 Block user comment: N Private report: N New Comment: No response in 11 years, bad idea (application framework should offer proper hooks), and also outdated since PHP 5 offers full OO features. Previous Comments: ------------------------------------------------------------------------ [2002-12-03 15:43:38] 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. ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=20799&edit=1