Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:11025 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 80328 invoked by uid 1010); 9 Jul 2004 11:14:15 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 80263 invoked from network); 9 Jul 2004 11:14:14 -0000 Received: from unknown (HELO mail.zend.com) (80.74.107.235) by pb1.pair.com with SMTP; 9 Jul 2004 11:14:14 -0000 Received: (qmail 23335 invoked from network); 9 Jul 2004 11:14:09 -0000 Received: from localhost (HELO zeev-laptop-new.zend.com) (127.0.0.1) by localhost with SMTP; 9 Jul 2004 11:14:09 -0000 Message-ID: <5.1.0.14.2.20040709141339.029c2ed0@localhost> X-Sender: zeev@localhost X-Mailer: QUALCOMM Windows Eudora Version 5.1 Date: Fri, 09 Jul 2004 14:14:08 +0300 To: Jason Garber Cc: internals@lists.php.net,andrew@ionzoft.com In-Reply-To: <5.1.0.14.0.20040709034047.01d2a3e8@mail.ionzoft.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed Subject: Re: [PHP-DEV] Segmentation Fault when using interface From: zeev@zend.com (Zeev Suraski) References: <5.1.0.14.0.20040709034047.01d2a3e8@mail.ionzoft.com> We'll look into it and let you know whether it's in PHP or in one of the extensions modules. Thanks for the report! Zeev At 10:50 09/07/2004, Jason Garber wrote: >Hello, > >I discovered this problem tonight while working on a new PHP 5 class that >uses an interface. The code example came from >http://www.zend.com/php5/articles/engine2-php5-changes.php#Heading5 > > > interface Throwable { > public function getMessage(); > } > > class MyException implements Throwable { > public function getMessage() { > echo "Hello\n"; > } > } > > $x = new MyException; > $x->getMessage(); >?> > >------------------ > >On this server, I get a Segmentation Fault: > >[ionzoft@lithium dev]$ php -v >PHP 5.0.0RC3 (cli) (built: Jun 24 2004 17:35:13) >Copyright (c) 1997-2004 The PHP Group >Zend Engine v2.0.0RC3, Copyright (c) 1998-2004 Zend Technologies > with Zend Extension Manager v1.0.2, Copyright (c) 2003-2004, by Zend > Technologies > with Zend Optimizer v2.5.2, Copyright (c) 1998-2004, by Zend Technologies > with Zend Debugger v3.5.0, Copyright (c) 1999-2004, by Zend Technologies > >[ionzoft@lithium dev]$ php -f Interface.php >Segmentation fault > >------------------ > >On this server, It works fine: > >[izsp@boron Jason]$ php -v >PHP 5.0.0RC3 (cli) (built: Jun 14 2004 14:04:10) >Copyright (c) 1997-2004 The PHP Group >Zend Engine v2.0.0RC3, Copyright (c) 1998-2004 Zend Technologies > >[izsp@boron Jason]$ php -f Interface.php >Hello > >------------------ > >Could it be a problem with the Debugger? > >Thanks, >Jason Garber > >-- >PHP Internals - PHP Runtime Development Mailing List >To unsubscribe, visit: http://www.php.net/unsub.php