Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:23239 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 24002 invoked by uid 1010); 11 May 2006 07:31:53 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 23987 invoked from network); 11 May 2006 07:31:53 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 11 May 2006 07:31:53 -0000 X-PHP-List-Original-Sender: wcandillon@gmail.com X-Host-Fingerprint: 66.249.92.170 ug-out-1314.google.com Linux 2.4/2.6 Received: from ([66.249.92.170:62837] helo=ug-out-1314.google.com) by pb1.pair.com (ecelerity 2.0 beta r(6323M)) with SMTP id 8D/FF-19568-768E2644 for ; Thu, 11 May 2006 03:31:52 -0400 Received: by ug-out-1314.google.com with SMTP id k3so135203ugf for ; Thu, 11 May 2006 00:31:49 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=lYudra5ADkg/A5HeU5hkM7YVkEcEzwrncvQ3LXRJCt26kbJh+RDnTbDgt7QyNr3xbhhp3AJzkNWd1P65HtfuD9adTZIJ/ji+HEwX6aw1DCsd5xMDhQxB7OLO7req0MKZpihLCG007zvquAew28vg8ymP6ODWl23ySOSbKeXvpgI= Received: by 10.78.17.4 with SMTP id 4mr134233huq; Thu, 11 May 2006 00:31:49 -0700 (PDT) Received: by 10.78.47.19 with HTTP; Thu, 11 May 2006 00:31:49 -0700 (PDT) Message-ID: <43b5c44e0605110031j28b533ffk10cb40178906f85a@mail.gmail.com> Date: Wed, 10 May 2006 23:31:49 -0800 To: internals MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Subject: #line C macro equivalent in php ? From: wcandillon@gmail.com ("William Candillon") Hello, I'd like to know, if it's possible to create a php function in C which modify the line number and the php interpreter. It will be very useful for tools generating php code (lex, yacc, smarty etc). For exemple: echo __FILE__//show parser.php __setLine(8);__setFile('parser.y'); toto(); Will show the following warning: Call to undefined function: toto() in parser.y at line 9 Best regards, William --=20 William Candillon Telecom Lille Student E-mail: wcandillon@elv.enic.fr Tel: +33(0) 6 67 99 13 16 CV: http://wcandillon.netcv.org Resume: http://wcandillon.en.netcv.org