Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:15129 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 23560 invoked by uid 1010); 21 Feb 2005 00:44:50 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 23167 invoked from network); 21 Feb 2005 00:44:44 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 21 Feb 2005 00:44:44 -0000 X-Host-Fingerprint: 213.186.50.69 blanchette.skouat.net Linux 2.4/2.6 Received: from ([213.186.50.69:54179] helo=blanchette.skouat.net) by pb1.pair.com (ecelerity 1.2 (r4437)) with SMTP id A9/22-32941-4DE29124 for ; Sun, 20 Feb 2005 19:44:05 -0500 Received: from gabriel ([::ffff:80.125.231.227]) (AUTH: LOGIN frederic.lecointre@burnweb.net) by blanchette.skouat.net with esmtp; Mon, 21 Feb 2005 01:43:50 +0100 id 0002824C.42192EC6.00005795 Message-ID: <007801c517ae$a83a2b60$0201a8c0@gabriel> "=?iso-8859-1?Q?Fr=E9d=E9ric_LECOINTRE?=" To: "Marcus Boerger" , "val khokhlov" Cc: internals@lists.php.net References: <005801c5156b$ae0711b0$0201a8c0@gabriel><855185390.20050218092558@marcus-boerger.de><008701c515a7$4fec38d0$0201a8c0@gabriel> <20050218121817.30870.qmail@lists.php.net><005401c5168c$eb0b0e50$0201a8c0@gabriel><579443614.20050220053257@marcus-boerger.de><45580785.20050220185921@vk.kiev.ua> <1168860392.20050220180508@marcus-boerger.de> Date: Mon, 21 Feb 2005 01:45:34 +0100 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1106 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 Subject: Re: [PHP-DEV] function proposal - php_check_syntax_string From: bogus@news.php.net (Unknown Sender) Hi all, Val is right with define. but i have unexpected result when: 1 - redeclare existing function in main code-> end after function call 2 - redefine __autoload -> same 3 - redeclare function in test code -> same i think that's due fatal error as Andi say "some of the engine internals can be left in an unstable state after a fatal error" cause exit. redefine a class works even if it's destroyed during clean up (?) here test, output and new diff ( no cleanup after parse error) http://php-dev.burnweb.net. finally, i can avoid exit with zend_try but 1 - segfault with cleanup method after fatal error from test code 2 - declared class are registered with swapping method ( i'm not sure that i do the right thing for Alan's idea. any suggestion ?) perhaps, use an alternative simple scanner like PHP_Parser would be a reasonable solution fred ----- Original Message ----- From: "Marcus Boerger" To: "val khokhlov" Cc: Sent: Sunday, February 20, 2005 6:05 PM Subject: Re: [PHP-DEV] function proposal - php_check_syntax_string | Hello val, | | Sunday, February 20, 2005, 5:59:21 PM, you wrote: | | > Hello Marcus, | | > Sunday, February 20, 2005, 6:32:57 AM, you wrote: | | MB>> what happend to defines (when redefining) | > define() is called at run-time, as far as i saw, so there should be no | > problems with it | | MB>> and what happens to __autoload()? | > well, i never used it myself, so i've never tested bcompiler with this | > feature (and apc developers haven't too). maybe zend developers will comment on | > __autoload - if this feature is compile-time or run-time? (seems that it's | > run-time only, so it shouldn't cause a crash) | | | Even though it is run-time only, the point is that the pointers are set | during compile time. | | | -- | Best regards, | Marcus mailto:helly@php.net | | -- | PHP Internals - PHP Runtime Development Mailing List | To unsubscribe, visit: http://www.php.net/unsub.php |