RE: [PHP] Is there way how to get line number from which function was called ???

From: Date: Wed, 28 Mar 2001 13:32:49 +0000
Subject: RE: [PHP] Is there way how to get line number from which function was called ???
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-45892@lists.php.net to get a copy of this message
No. You could pass the constant __LINE__ to your function, but I assume that you want this feature to be generically available within all functions. If you really want to be able to track your call-stack then you'd be better off using a development environment like the Zend IDE and debugger. Alternatively you could request a function to the PHP developers mailing list that would return an array containing the current call-stack. You can register your own error handler and assert handler - these guys receive the calling LINE as a parameter. -----Original Message----- From: mmlynarcik@vodnik.charmed.sk [mailto:mmlynarcik@vodnik.charmed.sk]On Behalf Of Milan Mlynarcik Sent: 28 March 2001 14:43 To: php-general@lists.php.net Subject: [PHP] Is there way how to get line number from which function was called ??? Is there way how to get line number from which function was called ??? Milan Mlynarcik -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net For additional commands, e-mail: php-general-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net

« previous php.general (#45892) next »