>From zend_error():

  error_filename = zend_get_executed_filename(TSRMLS_C);
  error_lineno = zend_get_executed_lineno(TSRMLS_C); 

--Wez.

> -----Original Message-----
> From: Stefan Mueller [mailto:[EMAIL PROTECTED] 
> Sent: 16 May 2004 15:22
> To: [EMAIL PROTECTED]
> Subject: [PHP-DEV] Filename of the currently executed php script
> 
> Hi
> 
> I'm a greenhorn tying to add some code to 
> /ext/standard/mail.c php_mail(...), 
> but I have trouble to get the filename of the php script that 
> triggers the 
> php_mail(...) call. compiler_globals.compiled_filename 
> doesn't work. It's 
> always NULL.
> Any ideas how i could get this filename?
> 
> thanks !
> 
> Stefan
> 
> -- 
> PHP Internals - PHP Runtime Development Mailing List
> To unsubscribe, visit: http://www.php.net/unsub.php
> 
> 

-- 
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to