Re: PHP 5

From: Date: Sun, 06 Jan 2002 02:11:24 +0000
Subject: Re: PHP 5
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-76003@lists.php.net to get a copy of this message
Hi,

Peter Illes <pilles@pannonrex.com>  has this feature request he posted in
php.windows. Looks useful to me for php 5:

My original problem is simpler than that, though: I'd like to pre-allocate a
buffer for the string. Is this possible in PHP?

This is possible in both C/C++ and Delphi (with SetLength() in Delphi). The
reason for this to have let's say 4-5 re-allocations instead of ~10,000+
re-allocations.

Of course we could get into the source of PHP to add the functionality (or
alternatively, roll our own cache object), but this is a very basic feature,
and I'm sure it does have it, I'm just too unlucky not finding out how...

Happy New Year,
Peter


Andi Gutmans <andi@zend.com> wrote in message
news:5.0.2.1.2.20020101185643.01898ee0@127.0.0.1...
> Hey,
>
> The Zend Engine 2 has made lots of progress.
> I think we should have a discussion of what other things besides the
> scripting engine we'd like to change for PHP 5.
> I know there was talk on deprecating some stuff such as old-style function
> names, moving extensions to PECL etc.. I think it's a good time to start
> discussing some of these issues (hopefully we can keep things short :)
> Also, let's try and keep the scope to realistic changes which won't turn
> PHP upside down and which are doable within a relatively short period of
> time. I think it'd be really cool if we could get an alpha of PHP 5 out by
> Spring.
>
> Unrelated, I'm still waiting to hear exactly what mechanism the PEAR guys
> implemented for PECL. I know that if it's not a really cool easy to use
> mechanism I would prefer to wait until we write one. One of the main
> strengths of PHP is that everything is bundled together and is easy to
> setup. We shouldn't make it much harder on people. Although we're planning
> on only move the unimportant extensions out of PHP I still think it should
> be extremely easy to get a list of available extensions (maybe even a part
> of the ./configure process) and to easily download/configure/install them.
>
> Andi
>




Thread (90 messages)

« previous php.dev (#76003) next »