From:             [EMAIL PROTECTED]
Operating system: Windows XP
PHP version:      4.2.3
PHP Bug Type:     Feature/Change Request
Bug description:  Able to call function when reaching a certain line in a certain file

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 bug report at http://bugs.php.net/?id=20799&edit=1
-- 
Try a CVS snapshot:         http://bugs.php.net/fix.php?id=20799&r=trysnapshot
Fixed in CVS:               http://bugs.php.net/fix.php?id=20799&r=fixedcvs
Fixed in release:           http://bugs.php.net/fix.php?id=20799&r=alreadyfixed
Need backtrace:             http://bugs.php.net/fix.php?id=20799&r=needtrace
Try newer version:          http://bugs.php.net/fix.php?id=20799&r=oldversion
Not developer issue:        http://bugs.php.net/fix.php?id=20799&r=support
Expected behavior:          http://bugs.php.net/fix.php?id=20799&r=notwrong
Not enough info:            http://bugs.php.net/fix.php?id=20799&r=notenoughinfo
Submitted twice:            http://bugs.php.net/fix.php?id=20799&r=submittedtwice
register_globals:           http://bugs.php.net/fix.php?id=20799&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=20799&r=php3
Daylight Savings:           http://bugs.php.net/fix.php?id=20799&r=dst
IIS Stability:              http://bugs.php.net/fix.php?id=20799&r=isapi

Reply via email to