Re: [PHP-DEV] More formal feature request cycle

2010-09-16 Thread Frederic Hardy
Hello ! This thought is brought on mainly by watching the annotations drama that is currently occupying internals, does anyone else agree it might be a good idea to have a slightly more formal procedure for requesting features and then recording votes pros, cons, side effects, etc. against it.

Re: [PHP-DEV] ->{} = syntax ?

2010-09-10 Thread Frederic Hardy
Hello ! I have seen this comment about ->{} = syntax in log of revision 302923 of trunk : "PHP has changed (undefined) behaviour from 5.3.2 to 5.3.3: ->{} = , which seems to have been never an officially supported syntax and have never been a valid property name, is no longer allowed and PHP ba

[PHP-DEV] ->{} = syntax ?

2010-09-10 Thread Frederic Hardy
Hello ! I have seen this comment about ->{} = syntax in log of revision 302923 of trunk : "PHP has changed (undefined) behaviour from 5.3.2 to 5.3.3: ->{} = , which seems to have been never an officially supported syntax and have never been a valid property name, is no longer allowed and PHP

[PHP-DEV] Bug in reflectionMethod::getPrototype() ?

2010-08-21 Thread Frederic Hardy
Hello ! During french PHP test fest, i have tested ReflectionMethod::getPrototype(), and the result is... strange. This is the PHPT file : --TEST-- --FILE-- getPrototype(); echo $prototype->class . '::' . $prototype->name; ?> --EXPECT-- Hello::sayHelloTo In my opinion, result is strange becau

[PHP-DEV] Test Fest and automating building of tst environnement

2010-06-25 Thread Frederic Hardy
Hello ! I have made a sh script to build automaticaly the PHP test fest environment under FreeBSD 7/8. It is based upon scripts made by Eric Stewart. It work fine on my FreeBSD, but I need to test it on several configuration. So, if you want to test it, please download it from https://svn.mage

Re: [PHP-DEV] Re: Compilation of trunk with --enable-dtrace

2010-06-23 Thread Frederic Hardy
On 06/23/2010 22:43, Johannes Schlüter wrote: Hi, On Wed, 2010-06-23 at 22:04 +0200, Frederic Hardy wrote: f...@witchblade:/usr/home/fch/php/sapi/cli 26> sudo dtrace -ln 'php*:::' -c './php -m' Password: ID PROVIDERMODULE

Re: [PHP-DEV] Re: Compilation of trunk with --enable-dtrace

2010-06-23 Thread Frederic Hardy
Hello ! zend_dtrace_gen.h is generated during configure using dtrace -h and then the object file is generated using dtrace -G on Solaris and FreeBSD (mac os doesn't need a compiled object files of the probe description). On FreeBSD dtrace -h fails because of a syntax error in a dtrace script that

Re: [PHP-DEV] Detecting if a null variable exists?

2010-06-12 Thread Frederic Hardy
Hello ! Is it just me or are we missing a way in the language to check if a variable that has been set to NULL exists or not? is_null() on an unset variable throws a NOTICE. $var === null throws a notice. So, you have to use isset()? But, ah, $var = null; if(isset($var)) yields false. Is a

Re: [PHP-DEV] Gearman support for php-fpm?

2010-06-10 Thread Frederic Hardy
On 06/10/2010 17:20, Brian Moon wrote: The big difference is that different processes do different jobs in Gearman. All PHP workers in fpm just run what ever code is handed to them. How do you handle that? Threading ;) ? On 6/10/10 9:56 AM, Rasmus Lerdorf wrote: Has anybody thought about addi

Re: [PHP-DEV] Constant and expression ?

2010-06-09 Thread Frederic Hardy
On 05/19/2010 14:43, Johannes Schlüter wrote: Hi, On Wed, 2010-05-19 at 13:03 +0200, fqqdk wrote: 2010/5/19 Tjerk Anne Meesters I wrote a small article that gives an idea of the speed differences: http://shwup.blogspot.com/2010/04/about-constants.html Unfortunately this doesn't tell, what

[PHP-DEV] About phar::compressFiles() and phar::decompressFiles()

2010-06-07 Thread Frederic Hardy
Hello ! I have a problem with phar in PHP 5.3.2. This is the script : file_put_contents(__DIR__ . '/files/file.php', 'str_repeat('.', 100) . '\'; ?>'); $phar = new \Phar(__DIR__ . '/compressed.phar'); $phar->buildFromDirectory(__DIR__ . '/files', '/\.php$/'); $phar->setSignatureAlgorithm(\Pha

Re: [PHP-DEV] --enable-zend-multibyte and phar support

2010-05-20 Thread Frederic Hardy
On 05/20/2010 11:28, Frederic Hardy wrote: I have a problem with php 5.3.2 under FreeBSD 7/8 with configure option --enable-zend-multibyte and phar support. Then i use this option, phar does not work correctly. No seg fault, no crash, just... nothing or cabalistic letter in output of my script

[PHP-DEV] Æ

2010-05-20 Thread Frederic Hardy
Hello ! I have a problem with php 5.3.2 under FreeBSD 7/8 with configure option --enable-zend-multibyte and phar support. Then i use this option, phar does not work correctly. No seg fault, no crash, just... nothing or cabalistic letter in output of my script. To solve the problem, recompilati

Re: [PHP-DEV] Constant and expression ?

2010-05-19 Thread Frederic Hardy
Hello ! AFAIK class constants are optimized for speed and therefore don't support expressions; don't expect this to change any time soon ;-) Is there any feature request about constant and expression ? I would like to write something like that : So the best solution is something like define('

[PHP-DEV] Constant and expression ?

2010-05-19 Thread Frederic Hardy
Hello ! Is there any feature request about constant and expression ? I would like to write something like that : Best regards, Fred. -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-DEV] Release manager ?

2010-05-10 Thread Frederic Hardy
Hello ! I would like to know if the name of the two release manager are now known ? Best regards, Fred -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] Re: Compilation of trunk with --enable-dtrace

2010-05-06 Thread Frederic Hardy
Hello ! I don't known why the dtrace version has a relation with the fact that the file zend_dtrace_gen.h is not in the trunk... Perhaps you can explain that to me ? error: zend_dtrace_gen.h: No suchfile or directory Best regards, Fred. -- PHP Internals - PHP Runtime Development Mailing Lis

[PHP-DEV] Compilation of trunk with --enable-dtrace

2010-05-06 Thread Frederic Hardy
Hello ! I'm currently trying to compile the trunk with dtrace under FreeBSD 8 with revision 298979 and i have the following problem : # ./buildconf # ./configure --enable-dtrace #make ... local/include -g -O2 -fvisibility=hidden -c /usr/home/fch/php/TSRM/tsrm_strtok_r.c -o TSRM/tsrm_strtok_r

Re: [PHP-DEV] IRC ?

2010-04-29 Thread Frederic Hardy
On 04/29/2010 17:04, Patrick ALLAERT wrote: #php.pecl on EFnet but nothing "official" AFAIK. Thanks, Patrick ;). -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-DEV] IRC ?

2010-04-29 Thread Frederic Hardy
Hello ! I have already seen in some post that there are some discussion on IRC. Someone can say me the irc server and the channel ? Or there is no official IRC channel ? Best regards, Fred. -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.p

Re: [PHP-DEV] One suggestion to PHP-FPM

2010-04-26 Thread Frederic Hardy
Hello ! in linux, read the /proc/self(pid)/status, and the VmRSS(real memory usage) or VmSize(virtual memory usage) is the the memory usage of the current process. in fact I was looking of a cleaner way to do it. Moreover, this solution is not available on OS like *BSD... Best reg

Re: [PHP-DEV] SVN Account Request: looyao

2010-04-14 Thread Frederic Hardy
On 04/14/2010 09:56, Antony Dovgal wrote: On 14.04.2010 11:20, Ferenc Kovacs wrote: agree, but he did proposed the patch. and it seems that nobody bothered to answer/review: http://www.mail-archive.com/internals@lists.php.net/msg45918.html Which definitely doesn't mean he can go ahead

[PHP-DEV] Closure improvements in next version ?

2010-04-08 Thread Frederic Hardy
Hello ! In bug report http://bugs.php.net/bug.php?id=51326, johannes say that the next major version of PHP (5.4 / 6.0) will have better oo support for closure. Is there any RFC about that available ? And where are the patches ? Best regards, Fred. -- PHP Internals - PHP Runtime Development

Re: [PHP-DEV] array_seek function

2010-03-17 Thread Frederic Hardy
2010/3/16 Felix De Vliegher : Hi all I recently needed seek functionality in arrays, and couldn't find it in the regular set of array functions, so I wrote a function for it. (Seek = getting an array value based on the position (or offset, if you want to call it like that), and not the key of