Re: [PHP-DEV] Question about ? bug or feature.

2003-11-16 Thread Robert Cummings
On Sun, 2003-11-16 at 01:23, Rasmus Lerdorf wrote: It's actually quite beneficial to leave it off in included files. Trailing carriage returns will not mess things up for any headers that might be sent after the include if you leave off the closing ? That's what I thought. Thanks guys,

[PHP-DEV] Opcode compiler into php internals?

2003-11-16 Thread John Smith
Hello, I'm a developer, and trying to think of the programming language for the next web development project. Requirements: The ability to compile the sources into bytecode/opcode format so that the source code is protected. I know that one can achieve this by using additional software, but

Re: [PHP-DEV] PHP Benchmark

2003-11-16 Thread Sebastian Bergmann
Sebastian Bergmann wrote: The benchmark suite is available at http://www.sebastian-bergmann.de/PHP_Benchmark/ I added results with the Zend Optimizer 2.1.0. -- Sebastian Bergmann http://sebastian-bergmann.de/ http://phpOpenTracker.de/ Das Buch zu PHP 5:

[PHP-DEV] Re: feature request: user-defined superglobals

2003-11-16 Thread Christian Schneider
Matthias Nothhaft wrote: declare_superglobal($_MYVAR); Has one single superglobal $_APP (or $_USER or the like) already been discussed? (Sorry Andi, couldn't find it in this list and didn't find the 'engine2' list you were referencing at all). I second Matthias that some sort of user-controlled

[PHP-DEV] Feature request: clone() function

2003-11-16 Thread Christian Schneider
I'd like to see a clone() (or whatever name you want) function which should exist in both PHP4 and PHP5 and allows to clone objects in a compatible way. Currently I'm using function clone($object) { return (is_object($object) version_compare(zend_version(), '2.0.0-dev', '')) ?

Re: [PHP-DEV] PHP Benchmark

2003-11-16 Thread Andrey Hristov
Sebastian Bergmann wrote: Sebastian Bergmann wrote: The benchmark suite is available at http://www.sebastian-bergmann.de/PHP_Benchmark/ I added results with the Zend Optimizer 2.1.0. Hi Sebastian, could you add a package (tar.gz, zip, tar.bz2, whatever) to be easy for the end user

[PHP-DEV] ZTS issues

2003-11-16 Thread Rob Richards
I have been looking at the IIS isapi issues and came up with the following patch: http://www.ctindustries.net/patches/zts-php5.diff.txt The changes are not just local to the isapi as it seems that all sapis running in ZTS mode would leak. The patch includes changes to cgi, isapi and apache2

Re: [PHP-DEV] PHP Benchmark

2003-11-16 Thread Markus Fischer
On Sun, Nov 16, 2003 at 12:09:55PM +0100, Sebastian Bergmann wrote : Sebastian Bergmann wrote: The benchmark suite is available at http://www.sebastian-bergmann.de/PHP_Benchmark/ I added results with the Zend Optimizer 2.1.0. Some teste are looking a bit weird, e.g.

Re: [PHP-DEV] PHP Benchmark

2003-11-16 Thread Sebastian Bergmann
Markus Fischer wrote: first nearly all numbers appear capped at special values (?) Yes, this is odd. But I don't know the cause of it. and second the Member Access has no value. This is because some of the tests with Zend Optimizer segfault. -- Sebastian Bergmann

Re: [PHP-DEV] PHP Benchmark

2003-11-16 Thread Olivier Hill
Sebastian Bergmann wrote: The benchmark suite is available at http://www.sebastian-bergmann.de/PHP_Benchmark/ Any comments, feedback, corrections and additions are welcome, Sebastian Would it be useful to create a PEAR package with it? You'd have to wrap the suite into an object though.

Re: [PHP-DEV] PHP Benchmark

2003-11-16 Thread Joerg Behrens
- Original Message - From: Sebastian Bergmann [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Saturday, November 15, 2003 8:13 AM Subject: [PHP-DEV] PHP Benchmark A while ago I posted [1] a script that performed some micro-benchmarks on PHP. I have now refined this benchmark by

Re: [PHP-DEV] PHP Benchmark

2003-11-16 Thread Sebastian Bergmann
Joerg Behrens wrote: Just for the records.. Thank you, Jörg, but I don't think posting results here is needed. What is needed is a decision on whether to develop this project on cvs.php.net and if so in what module (PEAR or own) or to put it on SourceForge.net. I already received offers for

[PHP-DEV] Re: PHP Benchmark

2003-11-16 Thread Christian Schneider
Sebastian Bergmann wrote: http://www.sebastian-bergmann.de/PHP_Benchmark/ Any comments, feedback, corrections and additions are welcome, You've done a good job but we basically only see two things: a) PHP4 is an order of a magniture faster than PHP3. b) PHP5 is about the same speed as PHP4.

RE: [PHP-DEV] Re: PHP Benchmark

2003-11-16 Thread Mike Robinson
Christian Schneider wrote: Sebastian Bergmann wrote: http://www.sebastian-bergmann.de/PHP_Benchmark/ Any comments, feedback, corrections and additions are welcome, You've done a good job but we basically only see two things: a) PHP4 is an order of a magniture faster than PHP3. b)

Re: [PHP-DEV] Re: PHP Benchmark

2003-11-16 Thread Christian Schneider
Mike Robinson wrote: The benchmark provides insight into changes in PHP speed between versions, major and minor. IMHO that's useful information, nice It tackles very little of PHP. One of the main changes of PHP5 (object references vs. copying) is missing for example. Of course it could be