Re: [PHP-DEV] persistent memory management

2006-12-05 Thread Alexey Zakhlestin
I believe, I sorted out most of the issues. Now, the last problem: what is the official way to deep-copy non-persistent zval into persistent zval? I expected zval_copy_ctor to have a flag. Unfortunately, it doesn't have one. the way I see it: void zval_copy_ctor(zval *value, zend_bool persistent

[PHP-DEV] [PATCH] Bug #39751: putenv causes string copy of freed memory region, causing crash

2006-12-05 Thread Kevin Hoffman
Bug summary If putenv deletes an environment variable (putenv("VAR=")) after it was set previously (putenv("VAR=xxx")) then pe->previous_entry (pe is the internal hash table entry for the environment variable) will point to a freed memory region. This bug is triggered

Re: [PHP-DEV] destruction of cross-referenced objects

2006-12-05 Thread Arnold Daniels
Richard Lynch schreef: On Mon, December 4, 2006 7:21 pm, Arnold Daniels wrote: I'm struggling with the problem that cross-referenced objects don't get destroyed. I can off course write a method to break the cross-reference, but that's kind of a pain in the butt, especially if the cross-refe

[PHP-DEV] variable types

2006-12-05 Thread Corne
Hi, I was trying to make PHP a bit more type-safe, but until now without success. I just want to do this for local testing, it's not important but it would be nice if it would work somehow.. Are there more people who tried this? What I want is the following: If you have a variable in you php cod

Re: [PHP-DEV] Temporarily overriding memory limit in extension

2006-12-05 Thread Bruce Bailey
Richard Thanks very much for the information -- it really helps. Bruce From: "Richard Lynch" <[EMAIL PROTECTED]> Reply-To: [EMAIL PROTECTED] To: "Bruce Bailey" <[EMAIL PROTECTED]> CC: internals@lists.php.net Subject: Re: [PHP-DEV] Temporarily overriding memory limit in extension Date: Tue,

Re: [PHP-DEV] Temporarily overriding memory limit in extension

2006-12-05 Thread Richard Lynch
On Mon, December 4, 2006 10:24 am, Bruce Bailey wrote: > In any case, I was under the impression from the php.ini setting > 'session.gc_probability' that script memory was not necessarily freed > when > the script ends. Is this not correct? That is not correct. GC probability refers to the odds

Re: [PHP-DEV] destruction of cross-referenced objects

2006-12-05 Thread Richard Lynch
On Mon, December 4, 2006 7:21 pm, Arnold Daniels wrote: > I'm struggling with the problem that cross-referenced objects don't > get > destroyed. I can off course write a method to break the > cross-reference, > but that's kind of a pain in the butt, especially if the > cross-reference > is not stra

[PHP-DEV] Re: [PHP 4.4.5 / Apache 2.2.3] Abrupt and unrepeatable Segmentation fault(11)

2006-12-05 Thread Jan Schröter
Jan Schröter wrote: #0 0xb7fa91a4 in do_lookup_x () from /lib/ld-linux.so.2 #1 0xb7fa9587 in _dl_lookup_symbol_x () from /lib/ld-linux.so.2 #2 0xb7fad24d in _dl_fixup () from /lib/ld-linux.so.2 #3 0xb7fb2630 in _dl_runtime_resolve () from /lib/ld-linux.so.2 #4 0xb70f6029 in internal_getent (