Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:28626 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 80364 invoked by uid 1010); 28 Mar 2007 18:32:12 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 80349 invoked from network); 28 Mar 2007 18:32:12 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 28 Mar 2007 18:32:12 -0000 Authentication-Results: pb1.pair.com smtp.mail=mauroi@digbang.com; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=mauroi@digbang.com; sender-id=unknown Received-SPF: error (pb1.pair.com: domain digbang.com from 200.117.246.157 cause and error) X-PHP-List-Original-Sender: mauroi@digbang.com X-Host-Fingerprint: 200.117.246.157 unknown Linux 2.5 (sometimes 2.4) (4) Received: from [200.117.246.157] ([200.117.246.157:44923] helo=zara.digbang.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 15/53-56738-5A4BA064 for ; Wed, 28 Mar 2007 13:32:10 -0500 Received: (qmail 4044 invoked from network); 28 Mar 2007 18:31:56 -0000 Received: from bensimon.intranet.db (HELO bensimon) (10.1.1.236) by zara.digbang.com with SMTP; 28 Mar 2007 18:31:56 -0000 To: Date: Wed, 28 Mar 2007 15:31:55 -0300 Message-ID: <004001c77167$5d07a220$ec01010a@intranet.db> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook 11 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3028 Thread-Index: AcdxZ1zrdzPQntFZQzqkrEUCcYr63Q== Subject: Datetime problem From: mauroi@digbang.com ("Mauro N. Infantino") Hi all, I know I've asked this before, but I couldn't find a solution (I'm not asking for an easy one, just a viable solution). In my last email I didn't include the reasons for my request, so I'll write them now. When we started with PHP5 there were no built-in PHP classes. This logically means that there was no guideline for class prefixing other than the programmers criteria. At that moment, and I still regret, we decided to build a framework using non prefixed classes because we thought it was more elegant. As usual, with the years, this framework got installed with each application in maybe hundreds of servers. Also, hundreds of applications refer to those class names. Right now, we want to upgrade to PHP5.2 in order to get all the benefits from it. But we just can't modify and test all that codebase. I don't mean it's impossible, it's just so difficult for a kind of upgrade that in previous versions of PHP was really really easy. Furthermore, I suppose that in a few months we're going to have to work hard for PHP6. For the obviouse reasons, we've tried not to use classes in PHP4. When PHP5 was released, we were pleased that we could finally use an OO approach. Every application built before the PHP5 release was not migrated, but PHP4 is still maintained! PHP5.1 doesn't. So, what I'm asking is a workaround to this problem that caught us without any warning: adding an ini setting to prevent this class definition (the date_register_classes function, in this case). I know it's a hack, but it's for people that ended up in our situation, without any way to prevent it (Reminder: when PHP5 was released there were almost no built-in classes). Even if it's undocumented, it would be useful. I can send the patch if you want. Thanks again, Mauro.