Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:34314 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 5915 invoked by uid 1010); 1 Jan 2008 17:03:04 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 5900 invoked from network); 1 Jan 2008 17:03:04 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 1 Jan 2008 17:03:04 -0000 Authentication-Results: pb1.pair.com smtp.mail=johannes@php.net; spf=unknown; sender-id=unknown Authentication-Results: pb1.pair.com header.from=johannes@php.net; sender-id=unknown Received-SPF: unknown (pb1.pair.com: domain php.net does not designate 83.243.58.163 as permitted sender) X-PHP-List-Original-Sender: johannes@php.net X-Host-Fingerprint: 83.243.58.163 mail4.netbeat.de Received: from [83.243.58.163] ([83.243.58.163:34165] helo=mail4.netbeat.de) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id F7/26-51974-5427A774 for ; Tue, 01 Jan 2008 12:03:04 -0500 Received: (qmail 12075 invoked by uid 507); 1 Jan 2008 17:02:57 -0000 Received: from unknown (HELO ?192.168.1.102?) (postmaster%schlueters.de@62.245.160.45) by mail4.netbeat.de with ESMTPA; 1 Jan 2008 17:02:57 -0000 To: Marcus Boerger Cc: internals@lists.php.net, Pierre In-Reply-To: <1668621659.20071231224547@marcus-boerger.de> References: <99cd336d0712280356v680cc82fh3b1396c9c608bb96@mail.gmail.com> <99cd336d0712281728g6659d7e6pa3ed92db5574e63b@mail.gmail.com> <1944505528.20071230185830@marcus-boerger.de> <1668621659.20071231224547@marcus-boerger.de> Content-Type: text/plain Date: Tue, 01 Jan 2008 18:02:50 +0100 Message-ID: <1199206970.27543.30.camel@johannes.nop> Mime-Version: 1.0 X-Mailer: Evolution 2.12.2 (2.12.2-2.fc8) Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] spl_autoload vs __autoload From: johannes@php.net (Johannes =?ISO-8859-1?Q?Schl=FCter?=) Hi, On Mon, 2007-12-31 at 22:45 +0100, Marcus Boerger wrote: > Hello Johannes, > > I agree with Pierre here. How about finally making SPL built in > always > like ext/standard? First some statistics: According to my numbers[1], which are as wrong as most other statistics about such stuff. 1% (36 of 3573) of the PHP 5 installations have SPL disabled. So imo having it not forced-on is not a big problem for users. The only ones who might complain about enforcing it are people trying to run PHP on embedded platforms, but they already have to do some changes here and there so I don't see that as a problem either. On the other side, from the internals point of view, I see benefits for us like that we can rely on SPL Exceptions really being there without #ifdef'ing around (see ext/mysqlit -> RuntimeException vs. Exception) and such stuff. So in the end I'm +1 on the proposal for 5.3. On a related note: Imo for users the real problems are different extensions, which we won't enable by default (due to their dependency on external stuff) and which might be available on some host or different php.ini settings. For instance I was once annoyed by zlib not being available on a shared host or png not available for gd. While I know that it is hard for us to reach these people (and most of us here aren't interested in shared hosts anyways) that's what I'd like to think about. Many people try to write apps which run "everywhere" - That's one of the reasons for PHP's success - but this also means they can only rely on a limited set of functionality... johannes [1] Counting installations of a random PHP app (phpMyFAQ) where the user agreed to send the data