Re: [PHP-DEV] 5.3 compile time still depends on runtime constants ("Default value for parameters with a class type hint can only be NULL")

2008-12-17 Thread phpxcache
sorry, forgot to "reply to all" http://bugs.php.net/bug.php?id=46850 -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-DEV] 5.3 compile time still depends on runtime constants ("Default value for parameters with a class type hint can only be NULL")

2008-12-11 Thread phpxcache
this is a discussion about "Default value for parameters with a class type hint can only be NULL" error let's focus our eyes on zend_compile.c function zend_do_receive_arg void zend_do_receive_arg(zend_uchar op, const znode *var, const znode *offset, const znode *initialization, znode *class

Re: [PHP-DEV] APC doesn't work on Windows?

2008-05-25 Thread phpxcache
you're right, but too bad there's no PHP_FCGI_CHILDREN (pre-fork) for windows, not even any alternatives {{{ #ifndef PHP_WIN32 /* Pre-fork, if required */ if (getenv("PHP_FCGI_CHILDREN")) { children = atoi(getenv("PHP_FCGI_CHILDREN")); }}} > No, why should it? The cache is shared p

[PHP-DEV] Re: Patch for opcode caches

2008-03-22 Thread phpxcache
XCache PHP_5_3 compatibility changeset is commited http://xcache.lighttpd.net/changeset/548 {{{ $ svn co svn://svn.lighttpd.net/xcache/trunk }}} -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] Patch for opcode caches

2008-03-17 Thread phpxcache
session (or caused by TSRM/ZendEngine) seems broken in my local cvs checkout i'm not sure if it's relatived to this patch but i did 'cvs up' and some commit broke the patch (with conflicts) please commit, or roll out another diff against the PHP_5_3 cvs so i can test it again thanks -- PHP Inter

Re: [PHP-DEV] Patch for opcode caches

2008-03-09 Thread phpxcache
On Mon, Mar 10, 2008 at 5:59 AM, Marcus Boerger <[EMAIL PROTECTED]> wrote: > Hello Dmitry, > > please don't apply. The patch looks rather rough and untested (see below). > Also I really disagree to making the engine even more complex and adding > even more different behavior ways. That way we ju

Re: [PHP-DEV] Patch for opcode caches

2008-03-08 Thread phpxcache
checked and it works, all test cases that pass without XCache now pass with XCache too. i'll commit after your commit in ZendEngine thanks -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] 5.3 Release Planning

2008-03-07 Thread phpxcache
gotcha, i'll check it within 24hours thanks for your great work -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] 5.3 Release Planning

2008-03-07 Thread phpxcache
i just hope the issue described in http://www.mail-archive.com/internals@lists.php.net/msg32601.html will be resolved before 5.3 is out. it is the only problem that breaks opcode cacher support as far as i can see by now. e.g.: with this problem fixed, all test cases will pass when XCache is enable

Re: [PHP-DEV] early class binding revisited

2008-01-26 Thread phpxcache
any news on this topic? -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] early class binding revisited

2007-12-30 Thread phpxcache
more pitfall: apc and XCache uses fast copy of opcodes for restoring opcode, but this will never work if early binding which have to modify opcodes is done after restore see apc_copy_op_array_for_execution() in apc_compile.c there is my_copy_data_exceptions(dst, src); which do a check if to deep co

Re: [PHP-DEV] early class binding revisited

2007-12-30 Thread phpxcache
> Compiler shouldn't generate different code. Unqualified name is resolved > at runtime, but code should be the same whatever resolution was made. > Did you check that different code is indeed generated? zend_compile.c === if (zend_hash_find(CG(class_table), lc

[PHP-DEV] early class binding revisited

2007-12-30 Thread phpxcache
= original problem = the biggest problem caused by early class binding is that it's unfriendly to opcode cachers. parent1.php class P { function __construct() { echo "parent2"; } } include "child.php" == parent2.php class P { function __constr

[PHP-DEV] bad test case that depends on user local ini

2007-12-29 Thread phpxcache
i have the following settings in my /etc/php.ini pcre.backtrack_limit=1 pcre.recursion_limit=1000 test case ini_get_all() tests [ext/standard/tests/general_functions/ini_get_all.phpt] FAIL. but after i remove the settings, it will PASS. Bug #43128 Very long class name causes segfault [Zend

[PHP-DEV] [bug in php5.3 cvs] op2 of OP_DATA which after INIT_NS_FCALL_BY_NAME is uninitialized

2007-12-28 Thread phpxcache
http://bugs.php.net/bug.php?id=43696 Description: as you can see in zend_compile.c opline->opcode = ZEND_INIT_NS_FCALL_BY_NAME; ZEND_INIT_NS_FCALL_BY_NAME's op1 is initialized, so is op2 . opline->opcode = ZEND_OP_DATA; ZEND_OP_DATA's op1 is initialized here but

Re: [PHP-DEV] Syntactic improvement to array

2007-02-04 Thread phpxcache
I think it's not worth doing unless there's overwhelming support as it's not desperately needed. But I'd be interested to hear people's thoughts. It seems implementation shouldn't be an issue but I'd have to dive a bit deeper. it sure acceptable for php users and will never be a conflict to "ph

[PHP-DEV] issue of current E_STRICT implemention and possible solution

2006-10-01 Thread phpxcache
the E_STRICT is an error type that issued at compile-time. and user error handler is called, switching to runtime. mixing runtime/compile-time is imho, not good, and cause problem in the real world. the flow: script, include -> compiling, issue E_STRICT -> user error handler. official bug: 1. se

[PHP-DEV] Re: [PECL-DEV] automated checking of zend_parse_parameters()

2006-09-07 Thread phpxcache
geat job. it's much faster than valgrind. and can find 64bit/be etc problems. it's something a must have like gcc printf format attribute. u may have already notice: the line number is wrong sometimes. -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.

Re: [PHP-DEV] RFC: unicode.semantics: runtime or not?

2006-09-06 Thread phpxcache
I think making it INI_PERDIR would mean a lot of headache and overcomplicated code in the engine and the extensions that modify its behaviour (like APC). i don't guess so. it's sure need upgrade but easy to implement, simply put unicode.semantics into entry key, and hash/search by the key. -- P