Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:33593 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 5360 invoked by uid 1010); 3 Dec 2007 19:04:34 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 5345 invoked from network); 3 Dec 2007 19:04:34 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 3 Dec 2007 19:04:34 -0000 Authentication-Results: pb1.pair.com header.from=jordan@wambaugh.org; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=jordan@wambaugh.org; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain wambaugh.org from 209.85.132.245 cause and error) X-PHP-List-Original-Sender: jordan@wambaugh.org X-Host-Fingerprint: 209.85.132.245 an-out-0708.google.com Received: from [209.85.132.245] ([209.85.132.245:47685] helo=an-out-0708.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id EE/2F-25012-A3354574 for ; Mon, 03 Dec 2007 14:04:33 -0500 Received: by an-out-0708.google.com with SMTP id c18so751801anc for ; Mon, 03 Dec 2007 11:04:08 -0800 (PST) Received: by 10.100.240.18 with SMTP id n18mr2345132anh.1196708647943; Mon, 03 Dec 2007 11:04:07 -0800 (PST) Received: from wambulator ( [204.154.43.244]) by mx.google.com with ESMTPS id e27sm6901872elf.2007.12.03.11.04.02 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 03 Dec 2007 11:04:06 -0800 (PST) To: "'Marcus Boerger'" Cc: References: <00bb01c835cb$9fb14fd0$df13ef70$@org> <1624722559.20071203181736@marcus-boerger.de> In-Reply-To: <1624722559.20071203181736@marcus-boerger.de> Date: Mon, 3 Dec 2007 14:03:53 -0500 Message-ID: <00ec01c835df$43c5ba30$cb512e90$@org> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook 12.0 Thread-Index: Acg10GhWQ55FtArzTTKGXesazi6CdwAApjHw Content-Language: en-us Subject: RE: [PHP-DEV] Object Oriented standard Library From: jordan@wambaugh.org ("Jordan Wambaugh") Thanks. I was not aware of SPL's file and array classes. As for the string class, some of it is done, and should work in 5.x HEAD. I fully plan to add Unicode support for PHP 6's HEAD. Is there any other concerns you may have about a string class (other than it being a big task)? I think it would be great to unify, and standardize all the string functions in PHP into a class. I don't want to rewrite anything already written, so I'll go ahead and take a look at ArrayObject and ArrayIterator. I'd love to help PHP as much as possible. Thanks, Jordan. -----Original Message----- From: Marcus Boerger [mailto:helly@php.net] Sent: Monday, December 03, 2007 12:18 PM To: Jordan Wambaugh Cc: internals@lists.php.net Subject: Re: [PHP-DEV] Object Oriented standard Library Hello Jordan, have a look at the SPL extension (Standard PHP Library) which introduces a few things (for instance SplFile). Have a look here: http://php.net/~helly I do not think we need a string class right now unless you want to provide a full unicode one that later works with HEAD seamingly. If you are intersted, then the ArrayObject/ArrayIterator implementation in SPL can be made much faster. I know what to do but have no time for that... and as always, help is always welcome here and if you have something to show, then show us :-) marcus Monday, December 3, 2007, 5:43:19 PM, you wrote: > I am currently working on a Object-Oriented Library extension that wraps a > lot of functionality in PHP's standard library dealing with strings, > arrays, fileIO, etc. into classes. > (String class, Collection class, etc.) > This would allow end-users to create objects that represent data types and > resources, and take advantage of all the benefits of OOP (object chaining, > polymorphism, etc) all in a c compiled extension. > Example: > $myString=new String("Hello world!"); > $myLowerCaseString = > $myString->copy()->replace("world","universe")->lowerCase(); > > > > The goal of this project is to help PHP mature into a more object-oriented > language with an object oriented library, while addressing a common > complaint about the standard library not being very consistent > (http://en.wikipedia.org/wiki/Php#Criticism [8th bullet]) > > I have already implemented a couple classes, but would like to get feedback > from the PHP development community on the idea of creating such a library > for PHP. Also, any suggestions would be greatly appreciated. > > Thanks, > > Jordan Wambaugh > > Best regards, Marcus