Re: error reporting linenumber and filename
| From: | Marek Kilimajer | Date: | Mon, 16 Jun 2003 14:22:21 +0000 |
| Subject: | Re: error reporting linenumber and filename | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-151662@lists.php.net to get a copy of this message | ||
Not possible with current php
Bas Jobsen wrote:
Hi, Running the code below, shows an errror in line 2 as expected. How do i get the linenumber of the function call? 3 here. <? function test($x){if($x!='a')trigger_error('error: call test with argument 1 equals a',E_USER_ERROR);} test('b'); ?> Best regards, Bas