Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:8386 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 16267 invoked by uid 1010); 5 Mar 2004 17:18:15 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 16243 invoked from network); 5 Mar 2004 17:18:14 -0000 Received: from unknown (HELO mail.zend.com) (192.117.235.230) by pb1.pair.com with SMTP; 5 Mar 2004 17:18:14 -0000 Received: (qmail 22051 invoked from network); 5 Mar 2004 17:18:11 -0000 Received: from guardian.zend.office (HELO AndiNotebook.zend.com) (10.1.1.4) by mail.zend.com with SMTP; 5 Mar 2004 17:18:11 -0000 Message-ID: <5.1.0.14.2.20040305191737.021be8a8@127.0.0.1> X-Sender: andi@127.0.0.1 X-Mailer: QUALCOMM Windows Eudora Version 5.1 Date: Fri, 05 Mar 2004 19:18:09 +0200 To: Christian Stocker ,internals@lists.php.net In-Reply-To: <5.1.0.14.2.20040305191158.021e4810@127.0.0.1> References: <4048ACBC.2@bitflux.ch> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed Subject: Re: [PHP-DEV] static crashes From: andi@zend.com (Andi Gutmans) I actually couldn't reproduce the crash with your script but I found problems with my patch using valgrind. Commit coming up in a second. Let me know if it solves your problem. Thanks for the short reproducing script. Andi At 07:12 PM 3/5/2004 +0200, Andi Gutmans wrote: >Can't reproduce this. > >At 05:37 PM 3/5/2004 +0100, Christian Stocker wrote: >>Hi >> >>The following segfaults on my linux server... >> >>>class bla { >> static $instance = null; >> static function getInstance() {} >>} >>$n = bla::getInstance(); >>?> >> >>if you comment out the "static $instance" line, it works... >> >>fresh HEAD checkout 15 minutes ago.. >> >>strangely enough, this works on OSX... >> >>backtrace can be found here -> http://trash.chregu.tv/bt.txt >> >>chregu >> >> >>-- >>christian stocker | Bitflux GmbH | schoeneggstrasse 5 | ch-8004 zurich >>phone +41 1 240 56 70 | mobile +41 76 561 88 60 | fax +41 1 240 56 71 >>http://www.bitflux.ch | chregu@bitflux.ch | gnupg-keyid 0x5CE1DECB >> >>-- >>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