RE: [PHP-DEV] Giving Globals the CV treatment [WAS: Runtime JIT Proposals]

2007-01-22 Thread Dmitry Stogov
Hi Sara, At first I don't understand why you are trying to deallocate variable. + if (CG(active_op_array)->T == (parent->u.var - 1)) { + CG(active_op_array)->T--; + } Isn't the same variable reused as result of ZEND_FETCH_DIM? The rest of patch

Re: [PHP-DEV] allow_url_fopen / allow_url_include and fine grained control

2007-01-22 Thread David Zülke
My understanding is that this coudn't happen because a userspace stream would be flagged is_url. So unless someone turns off, say "ftp", and then adds "ftp" to the whitelist, there is no problem. And if anyone does that, he/she should seriously consider looking for a job where he/she can't

Re: [PHP-DEV] PHP Object-Caching and Reference Counting

2007-01-22 Thread Stanislav Malyshev
I am not familiar with the term: "zval"...My understanding of php comes from extensive usage...Can you give me a specific example? OK, sorry, got a bit into engine-speak, basically zval is the internal representation of a variable, more or less, though $foo and $bar can be linked to the same z

Re: [PHP-DEV] PHP 5.2.1RC3 Released

2007-01-22 Thread steve
On 1/20/07, Antony Dovgal <[EMAIL PROTECTED]> wrote: Has something changed with realpath() (at least on windows, my only > test)??? In 5.2.0 if the file does not exist, it returns false, but in > 5.2.1RC2 and 5.2.1RC3 it returns the path to a non-existing file. > (Used fastcgi/nts version to test

Re: [PHP-DEV] PHP Object-Caching and Reference Counting

2007-01-22 Thread Arnold Daniels
Hi, To get an understanding of zval's and php internal basics, I recommend you read the following tutorials: http://devzone.zend.com/node/view/id/1021 - Part I: Introduction to PHP and Zend http://devzone.zend.com/node/view/id/1022 - Part II: Parameters, Arrays, and ZVALs http://devzone.zend

Re: [PHP-DEV] PHP Object-Caching and Reference Counting

2007-01-22 Thread Lars Schultz
That's correct. However, it is not guaranteed that your unset would delete last reference - there can be references on stack, in temp variables in current expressions being calculated (function call could happen in mid-expression), etc. Of course, it might be that your code is very controlled

Re: [PHP-DEV] GCC / Rounding Problem

2007-01-22 Thread Derick Rethans
On Tue, 16 Jan 2007, Luca Longinotti wrote: > Christian Schneider wrote: > > Do you think the configure script should be changed? I'm not sure if my > > version of the test works on the system where the original test was > > developed. > > https://overlays.gentoo.org/proj/php/browser/patches/php-

Re: [PHP-DEV] easter_date() II

2007-01-22 Thread Pierre
Hi Oliver, Report a bug using bugs.php.net (with a link to the patch diff -up :) This way it will not get lost in the internals archive. On 1/22/07, Oliver Block <[EMAIL PROTECTED]> wrote: Hello, easter_date() returns a timestamp produced by C's mktime(). (ext/calendar/easter.c:111):

[PHP-DEV] easter_date() II

2007-01-22 Thread Oliver Block
Hello, easter_date() returns a timestamp produced by C's mktime(). (ext/calendar/easter.c:111): Z_LVAL_P(return_value) = mktime(&te); AFAIK mktime() (time.h) is different to php's mktime() as it does not consider php's timezones, i,e, C's mktime does always return a timestamp o

Re: [PHP-DEV] Is this what Stefan Esser was referring to ...?

2007-01-22 Thread Stanislav Malyshev
I always found it strange so many projects use PHP in the name. PHPBB, PHPArchitect, PHP-Eclipse, PHPAccelerator, PHP Nuke, PHP Kitchen... If PHPBB/PHPnuke do not derive from code in PHP source itself, PHP group, as I understand it, can do next to nothing about it, since no distribution of mat

[PHP-DEV] Diagnosing bug

2007-01-22 Thread David Mytton
Hi, I have been trying to track down a potential bug in my code and after testing everything I could, I believe it is a bug in PHP. The problem is that it's quite a complex issue and only occurs when mod_rewrite is being used on Linux (it works fine on my Windows PC I'm developing on). I hav

[PHP-DEV] Re: COM extension defects: defect 39930

2007-01-22 Thread Wez Furlong
Thanks Andy! I've updated the bug report. --Wez. On 1/22/07, Andy Wharmby <[EMAIL PROTECTED]> wrote: Hi Internals As promised back in December I have now found some time to look at the COM defects to help reduce the backlog. I have now investigated the first of these; http://bugs.php.net/

[PHP-DEV] COM extension defects: defect 39930

2007-01-22 Thread Andy Wharmby
Hi Internals As promised back in December I have now found some time to look at the COM defects to help reduce the backlog. I have now investigated the first of these; http://bugs.php.net/bug.php?id=39930 and have updated the defect with my findings. In this case I believe the defect is in

[PHP-DEV] Possible Upload Bug

2007-01-22 Thread Sergiu Voicu
Hello I've discovered something that seems to be a bug. Not sure which one is the cause (the PHP processor or the browser), but here it is the description. I've created a form with enctype=multipart/form-data and of course a file input field. Now everything seem to work fine until I try to

Re: [PHP-DEV] allow_url_fopen / allow_url_include and fine grained control

2007-01-22 Thread Richard Quadling
Hmm. Yes. I see. Moot indeed. On 22/01/07, Richard Lynch <[EMAIL PROTECTED]> wrote: On Tue, January 16, 2007 7:07 pm, Sara Golemon wrote: > allow_url_fopen and allow_url_include continue to accept boolean flags > in order to behave just as they do now: true/on allows anything, > false/off allo

[PHP-DEV] PHP 5 Bug Summary Report

2007-01-22 Thread internals
PHP 5 Bug Database summary - http://bugs.php.net Num Status Summary (618 total including feature requests) ===[*Compile Issues]== 39372 Suspended Incompatibility in the PHP API. ===[*Configur

[PHP-DEV] PHP 4 Bug Summary Report

2007-01-22 Thread internals
PHP 4 Bug Database summary - http://bugs.php.net Num Status Summary (623 total including feature requests) ===[Apache2 related]== 38670 Open Whole 4.4.x branch has problem with open_basedir option nested from Apache2 38915 Open

Re: [PHP-DEV] Is this what Stefan Esser was referring to ...?

2007-01-22 Thread Stefan Esser
> It's a bit of an edge case. I don't think I ever really considered CSS > as being part of the PHP source code, but I suppose technically it is. > Like I previously stated. The phpSecInfo program does not only steal PHP code and uses PHP in it's name, it also steals the layout of phpinfo, inc