Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:8526 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 40118 invoked by uid 1010); 15 Mar 2004 16:00:12 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 39876 invoked from network); 15 Mar 2004 16:00:10 -0000 Received: from unknown (HELO mail.appliedsec.com) (69.17.65.231) by pb1.pair.com with SMTP; 15 Mar 2004 16:00:10 -0000 Received: from appliedsec.com (localhost.applied.sec [127.0.0.1]) by mail.appliedsec.com (Postfix) with ESMTP id 7463678C5F; Mon, 15 Mar 2004 10:53:30 -0500 (EST) Message-ID: <4055D309.4@appliedsec.com> Date: Mon, 15 Mar 2004 11:00:09 -0500 User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4) Gecko/20030807 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Jan Schneider Cc: "internals@lists.php.net" References: <20040315170405.o0cg44w4c0wccgsw@jan.dip.ammma.net> In-Reply-To: <20040315170405.o0cg44w4c0wccgsw@jan.dip.ammma.net> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: No static method callbacks anmore? From: hans@appliedsec.com (Hans Lellelid) I was just about to post the same bug ... Except that I couldn't quite build a reproducing testcase. I get exactly the same message in my code, but when I created a small static class to reproduce the problem it seems to work fine ... (static or non-static or mixture) Hans Jan Schneider wrote: > Hi, > > before reporting a bug, I want to make sure that this is no intentional > change. Are static methods no longer supported as callbacks? > > preg_replace_callback('/some pattern/', array('MyClass', 'Method'), > $subject) > > raises a warning atm: > Unable to call custom replacement function in ... > > Jan. > > -- > http://www.horde.org - The Horde Project > http://www.ammma.de - Neue Wege des Lernens > http://www.tip4all.de - Deine private Tippgemeinschaft