Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:15806 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 3229 invoked by uid 1010); 5 Apr 2005 07:57:05 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 3195 invoked from network); 5 Apr 2005 07:57:05 -0000 Received: from unknown (HELO netia.net.pl) (127.0.0.1) by localhost with SMTP; 5 Apr 2005 07:57:05 -0000 X-Host-Fingerprint: 195.114.173.133 lars.internetia.pl Linux 2.4 w/o timestamps Received: from ([195.114.173.133:55626] helo=lars.internetia.pl) by pb1.pair.com (ecelerity HEAD r(5268)) with SMTP id F5/0E-19272-0D442524 for ; Tue, 05 Apr 2005 03:57:04 -0400 Received: from szafir.internetia.pl ([212.106.7.66.32904]) by lars.internetia.pl with esmtp (Exim 3.35) envelope-from for id 1DIivl-00026B-00; Tue, 05 Apr 2005 09:57:01 +0200 Received: from granat.internetia.pl ([195.114.173.177.60324] helo=[10.114.160.200]) by szafir.internetia.pl with esmtp (TLSv1:RC4-MD5:128) (Exim 3.35) envelope-from for id 1DIivV-0003Hx-00; Tue, 05 Apr 2005 09:56:45 +0200 Organization: Netia SA To: internals@lists.php.net Date: Tue, 5 Apr 2005 09:56:47 +0200 User-Agent: KMail/1.7.2 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-ID: <200504050956.47234.Piotr_Roszatycki@netia.net.pl> Subject: Is it possible to override internal function? From: Piotr_Roszatycki@netia.net.pl (Piotr Roszatycki) I'd like to create PECL module which could replace mail() function. The new function would use SMTP protocol. I can't call any external utilities so this is the only posibility to send the mails. The environment is shared hosting platform so there are some limits, like forbidding the calling suid-ed binaries (like /usr/sbin/sendmail) and low number of user processes. This have to be hidden implementation so the users won't need to change their code, especially calling of mail() function. Is it possible to override the internal function in additional module? -- .''`. Piotr Roszatycki, Netia SA : :' : mailto:Piotr_Roszatycki@netia.net.pl `. `' mailto:dexter@debian.org `-