Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:45455 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 60942 invoked from network); 3 Sep 2009 09:12:48 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 3 Sep 2009 09:12:48 -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:60981] helo=zeus.freepage.ro) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 3A/D0-56188-E888F9A4 for ; Thu, 03 Sep 2009 05:12:47 -0400 Received: from zeus.freepage.ro (zeus.freepage.ro [127.0.0.1]) by zeus.freepage.ro (Postfix) with ESMTP id 14239788086 for ; Thu, 3 Sep 2009 12:12:46 +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 for ; Thu, 3 Sep 2009 12:12:45 +0300 (EEST) Message-ID: <4A9F888A.2040008@aron.ws> Date: Thu, 03 Sep 2009 11:12:42 +0200 User-Agent: Thunderbird 2.0.0.23 (X11/20090817) MIME-Version: 1.0 To: internals@lists.php.net Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Replace a builtin function From: aron@aron.ws (Aron Szabo) 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 ? Thanks! Sorry if this is not the right place for my question ... Yours, Aron