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
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_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 @@
{
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:
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,
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
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
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:
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
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
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.
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
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
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
...
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
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
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] =
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
--
-
Derick Rethans http://derickrethans.nl/
JDI Media Solutions http://www.jdimedia.nl/
International PHP Magazine
Test test ignore
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php
20 matches
Mail list logo