Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:45458 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 67829 invoked from network); 3 Sep 2009 09:33:32 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 3 Sep 2009 09:33:32 -0000 Authentication-Results: pb1.pair.com smtp.mail=aron@aron.ws; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=aron@aron.ws; sender-id=unknown Received-SPF: error (pb1.pair.com: domain aron.ws from 86.35.4.2 cause and error) X-PHP-List-Original-Sender: aron@aron.ws X-Host-Fingerprint: 86.35.4.2 zeus.freepage.ro Linux 2.6 Received: from [86.35.4.2] ([86.35.4.2:38592] helo=zeus.freepage.ro) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id DB/62-56188-B6D8F9A4 for ; Thu, 03 Sep 2009 05:33:32 -0400 Received: from zeus.freepage.ro (zeus.freepage.ro [127.0.0.1]) by zeus.freepage.ro (Postfix) with ESMTP id 83216788086; Thu, 3 Sep 2009 12:33:31 +0300 (EEST) Received: from [192.168.0.50] (catv-80-98-23-152.catv.broadband.hu [80.98.23.152]) by zeus.freepage.ro (Postfix) with ESMTP; Thu, 3 Sep 2009 12:33:31 +0300 (EEST) Message-ID: <4A9F8D68.7040008@aron.ws> Date: Thu, 03 Sep 2009 11:33:28 +0200 User-Agent: Thunderbird 2.0.0.23 (X11/20090817) MIME-Version: 1.0 To: Derick Rethans CC: internals@lists.php.net References: <4A9F888A.2040008@aron.ws> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] Replace a builtin function From: aron@aron.ws (Aron Szabo) Thanks Johannes & Derick ! I see the light now :D Yours, Aron Derick Rethans wrote: > On Thu, 3 Sep 2009, Aron Szabo wrote: > > >> Hello! >> >> Is it possible to replace an existing PHP function ( like mail() ) in an >> extension. >> I've been patching PHP to have a custom mail() function, but I think replacing >> the mail function with an extension would be better and will save a lot of >> time. >> >> Can somebody give me a clue or an extension that replaces a built-in function >> so I can study it ? >> > > Search for "set_time_limit" or "var_dump" at > http://cvs.xdebug.org/cgi-bin/viewvc.cgi/xdebug/xdebug.c?revision=1.455&view=markup > > regards, > Derick > >