Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:49109 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 64503 invoked from network); 22 Jul 2010 22:54:53 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 22 Jul 2010 22:54:53 -0000 Authentication-Results: pb1.pair.com header.from=chx1975@gmail.com; sender-id=pass; domainkeys=bad Authentication-Results: pb1.pair.com smtp.mail=chx1975@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 74.125.83.42 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: chx1975@gmail.com X-Host-Fingerprint: 74.125.83.42 mail-gw0-f42.google.com Received: from [74.125.83.42] ([74.125.83.42:55222] helo=mail-gw0-f42.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 3F/28-18391-C3CC84C4 for ; Thu, 22 Jul 2010 18:54:52 -0400 Received: by gwj15 with SMTP id 15so471088gwj.29 for ; Thu, 22 Jul 2010 15:54:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:mime-version:sender:received:from:date :x-google-sender-auth:message-id:subject:to:content-type; bh=jWF0we/zfpUUeEdnPyKPQDrQUah917xHNYiXnjjnhso=; b=PNXhq7JuCG5uMee7EpyNl+BDz3uNpEn05PEK/X4y5UUngMfr6Z0/ONXavn5LLa8l2e 2F3WNTevHEWW0CQnjNo6RAyIoNa2QMvn1jLhPO3C5e/W6a9EiF1a5MXN7n8+zjLt9hLS AQBMokC6uO5OuiqvBD5MCyc5KL/aRowlUGkjQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:from:date:x-google-sender-auth:message-id :subject:to:content-type; b=U0rjgh+pcA6aFzTEMiTeCsYBRVG3JavBiLMqzQuI5agohB4lMMXqJSaZBqdsUGhs5l SP3f43l5s2tG1KOUCb6Iu3ngV0IEpqK/3jQwpXpRBPRZEcWwYAdRD6erkFetx5T/vYRN nvzQk7zcoislRuHwzf4GaQGtpnEkYoQRrQ+/o= Received: by 10.90.49.2 with SMTP id w2mr2767237agw.119.1279839289489; Thu, 22 Jul 2010 15:54:49 -0700 (PDT) MIME-Version: 1.0 Sender: chx1975@gmail.com Received: by 10.90.82.11 with HTTP; Thu, 22 Jul 2010 15:54:29 -0700 (PDT) Date: Thu, 22 Jul 2010 15:54:29 -0700 X-Google-Sender-Auth: MUSazTMS9jLemHJllUO_R6sKaUM Message-ID: To: internals@lists.php.net Content-Type: text/plain; charset=ISO-8859-1 Subject: Remove variable function and method calls From: karoly@negyesi.net (Karoly Negyesi) Hi, Given that call_user_func exists I would recommend to remove $foo() from PHP Next. Observe the "logic" in the following examples: $foo(); new $foo(); classname::$foo; classname::$foo(); There is a word for this and that word is madness. The simplest is to nuke $foo(). call_user_func() is a perfect replacement. Regards Karoly Negyesi