[PHP-DEV] define()d constants in constant arrays break on inheritance

2003-06-05 Thread Wez Furlong
This bug has been around a long time; I actually thought that define()s wouldn't work at all in scalar initializers until today :) ?php error_reporting(E_ALL); define('A', 200); class Foo { var $bar = array(A = 'a'); } class Bar extends Foo {} var_dump(get_class_vars('Foo')); // bar = array(200

[PHP-DEV] Re: [ZEND-ENGINE-CVS] cvs: ZendEngine2 / zend.c

2003-06-05 Thread Sebastian Bergmann
Thies C. Arntzen wrote: i trust you;-) but - after looking thru zend.c - i think that the TLS stuff is getting more and more un-maintainable. What really looks messed up is #ifdef ZTS ... #ifdef ZTS ... #else ... #endif ... #endif -- Sebastian Bergmann

[PHP-DEV] [PATCH] iconv fix for LP64 platforms

2003-06-05 Thread Joe Orton
php_iconv_string() takes size_t as the out_len parameter, but ob_iconv_handler is passing a pointer to an unsigned int. --- php-4.3.2/ext/iconv/iconv.c.iconv 2003-03-04 17:20:27.0 + +++ php-4.3.2/ext/iconv/iconv.c 2003-06-04 14:46:56.0 +0100 @@ -427,7 +427,7 @@ {

[PHP-DEV] Undefined variables as extension args

2003-06-05 Thread Hans Zaunere
Hello, Please forgive me if this question is redundant, but I've searched high and low to no avail. As a PHP extension, I'm writing a ZEND_FUNCTION(myfunc) that needs to accept two variables from PHP land, fill in two values (longs) and then return TRUE or FALSE. Briefly:

[PHP-DEV] Benchmarking 4.3.2 vs 4.1.2

2003-06-05 Thread Jeff Moore
I remember a discussion about system calls here earlier. What is the status of that? I've been doing some tests and have found that this code runs about 2.5 times slower under 4.3.2 than it did on 4.1.2 on the same machine (running OS X): ?php $filename = 'file.html'; $fd = fopen($filename,

Re: [PHP-DEV] Benchmarking 4.3.2 vs 4.1.2

2003-06-05 Thread Rasmus Lerdorf
Uh, the number of open() calls really shouldn't change. Are you sure you are comparing the same code? And how are you testing? Attach strace or truss to your running httpd process and hit your script a single time. Then look at the output and compare them. Some of the keys to reducing

[PHP-DEV] Re: Benchmarking 4.3.2 vs 4.1.2

2003-06-05 Thread Tom Sommer
Jeff Moore wrote: I remember a discussion about system calls here earlier. What is the status of that? I've been doing some tests and have found that this code runs about 2.5 times slower under 4.3.2 than it did on 4.1.2 on the same machine (running OS X): 2.5? That's really bad... I know

Re: [PHP-DEV] Undefined variables as extension args

2003-06-05 Thread Wez Furlong
in the function table, you need to force those parameters to be passed by reference. PHP_FE(ncurses_getyx, first_and_second__args_force_ref) For an example of this, take a look at the headers_sent function entry in ext/standard/basic_functions.c --Wez. On Wed, 4 Jun 2003, Hans Zaunere wrote:

[PHP-DEV] RFC: a better strip_tags() implementation with re2c

2003-06-05 Thread Moriyoshi Koizumi
Hi, I've finally made a better strip_tags() implementation with re2c scanner generator. The new implementation comes with a set of generic methods that covers the current functionality plus several enhancements which enables us to properly handle tags that span multiple lines. The patch can

Re: [PHP-DEV] Benchmarking 4.3.2 vs 4.1.2

2003-06-05 Thread Ilia A.
Here is an analysis of the situation as it stands with PHP 4.3.3. As far as I can tell that even when opening files with the full path we do a lot of completely unnecessary work. We start from expand_filepath() which, gets called when opening a file. This function does a getcwd() everytime it

Re: [PHP-DEV] Benchmarking 4.3.2 vs 4.1.2

2003-06-05 Thread Jeff Moore
On Wednesday, June 4, 2003, at 12:21 PM, Rasmus Lerdorf wrote: Uh, the number of open() calls really shouldn't change. Are you sure you are comparing the same code? Yes. I am sure. And how are you testing? I attach fs_usage to the running httpd process and hit the script a single time.

Re: [PHP-DEV] Benchmarking 4.3.2 vs 4.1.2

2003-06-05 Thread Rasmus Lerdorf
Oh, this is on OSX? I guess realpath() does an open() on every component of a path on OSX? That's nuts! -Rasmus On Wed, 4 Jun 2003, Jeff Moore wrote: On Wednesday, June 4, 2003, at 12:21 PM, Rasmus Lerdorf wrote: Uh, the number of open() calls really shouldn't change. Are you sure

Re: [PHP-DEV] LDAP bind option

2003-06-05 Thread Nathan Gallaher
On Wed, 4 Jun 2003, Stig Venaas wrote: On Wed, Jun 04, 2003 at 02:59:41AM -0400, Jon Parise wrote: On Mon, May 19, 2003 at 06:26:43PM -0400, Nathaniel David Gallaher wrote: Currently the call to ldap_bind only supports the method LDAP_AUTH_SIMPLE (as it is hardcoded in the php

Re: [PHP-DEV] Re: [ZEND-ENGINE-CVS] cvs: ZendEngine2 / zend.c

2003-06-05 Thread Marcus Börger
At 15:43 04.06.2003, Sebastian Bergmann wrote: Thies C. Arntzen wrote: i trust you;-) but - after looking thru zend.c - i think that the TLS stuff is getting more and more un-maintainable. What really looks messed up is #ifdef ZTS ... #ifdef ZTS ... #else ...

[PHP-DEV] Re: [ZEND-ENGINE-CVS] cvs: ZendEngine2 / zend.c

2003-06-05 Thread Sebastian Bergmann
Marcus Börger wrote: So he should be forgiven if he doesn't try all version. Marcus, Derick, *, relax. Don't defend me, as I feel not offended. For the first time I did not test a non-ZTS build before committing a ZTS fix, so it was a mistake on my side. -- Sebastian Bergmann

Re: [PHP-DEV] Re: [ZEND-ENGINE-CVS] cvs: ZendEngine2 / zend.c

2003-06-05 Thread Edin Kadribasic
On Wed, 4 Jun 2003, Sebastian Bergmann wrote: Marcus Börger wrote: So he should be forgiven if he doesn't try all version. Marcus, Derick, *, relax. Don't defend me, as I feel not offended. For the first time I did not test a non-ZTS build before committing a ZTS fix, so it was a

[PHP-DEV] argv and plus signs

2003-06-05 Thread Monte Ohrt
Hi, I asked Andrei about this and he suggested that I pose this question to you folks... I'm trying to use php from the command line and the $argv array seems to be squashing plus signs (+) in the content. Example: $ test.php -R '\w+\.gif' file.txt A printout of $argv reveals: Array( [0] =

[PHP-DEV] argv and plus signs (again)

2003-06-05 Thread Monte Ohrt
I might have just answered my own question: http://bugs.php.net/bug.php?id=18566 I must use CLI instead of CGI. -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-DEV] test, ignore

2003-06-05 Thread Derick Rethans
-- - Derick Rethans http://derickrethans.nl/ JDI Media Solutions http://www.jdimedia.nl/ International PHP Magazine

[PHP-DEV] List test

2003-06-05 Thread Rasmus Lerdorf
Test test ignore -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php