Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:79402 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 81920 invoked from network); 3 Dec 2014 21:40:54 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 3 Dec 2014 21:40:54 -0000 Authentication-Results: pb1.pair.com header.from=php@tutteli.ch; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=php@tutteli.ch; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain tutteli.ch designates 80.74.154.78 as permitted sender) X-PHP-List-Original-Sender: php@tutteli.ch X-Host-Fingerprint: 80.74.154.78 ns73.kreativmedia.ch Linux 2.6 Received: from [80.74.154.78] ([80.74.154.78:35917] helo=hyperion.kreativmedia.ch) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 74/F7-15597-1638F745 for ; Wed, 03 Dec 2014 16:40:51 -0500 Received: (qmail 24864 invoked from network); 3 Dec 2014 22:40:45 +0100 Received: from cm56-129-238.liwest.at (HELO RoLaptop) (86.56.129.238) by ns73.kreativmedia.ch with ESMTPSA (AES256-SHA encrypted, authenticated); 3 Dec 2014 22:40:45 +0100 To: "'internals'" Date: Wed, 3 Dec 2014 22:40:43 +0100 Message-ID: <001201d00f41$cb284810$6178d830$@tutteli.ch> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0013_01D00F4A.2CEEFA00" X-Mailer: Microsoft Outlook 14.0 Thread-Index: AdAPOwt3iqGQQb7RSC669DpO7ChHeA== Content-Language: de-ch Subject: function overloading From: php@tutteli.ch ("Robert Stoll") ------=_NextPart_000_0013_01D00F4A.2CEEFA00 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Heya, I would like to know If it is somehow possible to overload existing functions by extensions. And if it is possible, are there already some extension doing it? I am not talking about the magic __call function. I am talking about something like: let's assume GMP has overloaded the function "abs" and therefore one can write: $n = gmp_init(-12345678901234567890); abs($n+ 2); // instead of using gmp_abs I know that GMP has overloaded operators so it doesn't seem so far that overloading functions is possible as well. I hope someone can help me. Cheers, Robert ------=_NextPart_000_0013_01D00F4A.2CEEFA00--