Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:45457 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 66491 invoked from network); 3 Sep 2009 09:31:00 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 3 Sep 2009 09:31:00 -0000 Authentication-Results: pb1.pair.com smtp.mail=derick@php.net; spf=unknown; sender-id=unknown Authentication-Results: pb1.pair.com header.from=derick@php.net; sender-id=unknown Received-SPF: unknown (pb1.pair.com: domain php.net does not designate 82.94.239.7 as permitted sender) X-PHP-List-Original-Sender: derick@php.net X-Host-Fingerprint: 82.94.239.7 mail.jdi.nl Received: from [82.94.239.7] ([82.94.239.7:51692] helo=mail.jdi-ict.nl) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 4C/12-56188-2DC8F9A4 for ; Thu, 03 Sep 2009 05:30:59 -0400 Received: from localhost (localhost [127.0.0.1]) by mail.jdi-ict.nl (8.13.7/8.12.11) with ESMTP id n839Unf1004757; Thu, 3 Sep 2009 11:30:49 +0200 X-Virus-Scanned: by amavisd-new at jdi-ict.nl Received: from localhost (localhost [127.0.0.1]) by jdi.jdi-ict.nl (8.13.7/8.12.11) with ESMTP id n839U6qM004509; Thu, 3 Sep 2009 11:30:48 +0200 Date: Thu, 3 Sep 2009 10:30:06 +0100 (BST) X-X-Sender: derick@kossu.ez.no To: Aron Szabo cc: internals@lists.php.net In-Reply-To: <4A9F888A.2040008@aron.ws> Message-ID: References: <4A9F888A.2040008@aron.ws> User-Agent: Alpine 2.00 (DEB 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.2 (jdi.jdi-ict.nl [127.0.0.1]); Thu, 03 Sep 2009 11:30:48 +0200 (CEST) Subject: Re: [PHP-DEV] Replace a builtin function From: derick@php.net (Derick Rethans) 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 -- http://derickrethans.nl | http://ezcomponents.org | http://xdebug.org twitter: @derickr