Re: [PHP-DEV] Extension for str_replace / preg_replace with arrays

2012-12-19 Thread Andrey Andreev
I've personally requested this on the bug tracker: https://bugs.php.net/bug.php?id=62315 P.S.: I hope this gets properly tracked to the thread as I read it from the archive and am not subscribed to the list. - Andrey -- PHP Internals - PHP Runtime Development Mailing List To

[PHP-DEV] Crashes in lex_scan at Zend/zend_language_scanner.c / BUG #52752

2012-12-19 Thread Jani Ollikainen
Hi, I did come up with a problem in my server crashing with SIGBUS. After long testing/tracing found: https://bugs.php.net/bug.php?id=52752 Which seems to be totally the same! But for different enviroment. Unfortunately that bug report seems to have only some workaround to disable mmap(). I

[PHP-DEV] Crashes in lex_scan at Zend/zend_language_scanner.c / BUG #52752

2012-12-19 Thread Jani Ollikainen
Hi, I did come up with a problem in my server crashing with SIGBUS. After long testing/tracing found: https://bugs.php.net/bug.php?id=52752 Which seems to be totally the same! But for different enviroment. Unfortunately that bug report seems to have only some workaround to disable mmap(). I

[PHP-DEV] The built-in PHP web server is very cool!

2012-12-19 Thread Raymond Irving
Hello, I would like to thank you guys very much for adding the built-in PHP web server to PHP. For the first time I've just deployed a quick standalone app without having to go through the trouble of configuring IIS or any other web server. The installation was easy as ABC. The built-in server

Re: [PHP-DEV] The built-in PHP web server is very cool!

2012-12-19 Thread William Betts
On Wed, Dec 19, 2012 at 10:05 AM, Raymond Irving xwis...@gmail.com wrote: Hello, I would like to thank you guys very much for adding the built-in PHP web server to PHP. For the first time I've just deployed a quick standalone app without having to go through the trouble of configuring IIS or

Re: [PHP-DEV] The built-in PHP web server is very cool!

2012-12-19 Thread Raymond Irving
Hi William, Why not? On Wed, Dec 19, 2012 at 11:07 AM, William Betts william.be...@gmail.comwrote: On Wed, Dec 19, 2012 at 10:05 AM, Raymond Irving xwis...@gmail.com wrote: Hello, I would like to thank you guys very much for adding the built-in PHP web server to PHP. For the first

Re: [PHP-DEV] The built-in PHP web server is very cool!

2012-12-19 Thread Patrick ALLAERT
2012/12/19 Raymond Irving xwis...@gmail.com: Hi William, Why not? Thank you for the kind words Raymond (which should be addressed to Moriyoshi Koizumi), but as mentioned on: http://php.net/manual/en/features.commandline.webserver.php: * It has never been created for anything else than

[PHP-DEV] Re: [PHP-CVS] com php-src: Added a test case for DateTimePoint.: ext/date/tests/date_time_point.phpt

2012-12-19 Thread Pierre Joye
hi Derick, On Wed, Dec 19, 2012 at 6:53 PM, Derick Rethans der...@php.net wrote: Commit:7c74531e884aaa0a0bf6db76adb0e203cdb81c02 Author:Derick Rethans git...@derickrethans.nl Mon, 17 Dec 2012 16:35:52 + Parents: d4acb579df4c78acaaff3e90698277e62aac Branches:

[PHP-DEV] Re: [PHP-CVS] com php-src: Added a test case for DateTimePoint.: ext/date/tests/date_time_point.phpt

2012-12-19 Thread Derick Rethans
On Wed, 19 Dec 2012, Pierre Joye wrote: hi Derick, On Wed, Dec 19, 2012 at 6:53 PM, Derick Rethans der...@php.net wrote: Commit:7c74531e884aaa0a0bf6db76adb0e203cdb81c02 Author:Derick Rethans git...@derickrethans.nl Mon, 17 Dec 2012 16:35:52 + Parents:

Re: [PHP-DEV] Complete traits redesign for 5.5

2012-12-19 Thread Rasmus Lerdorf
On 12/19/2012 01:39 AM, Dmitry Stogov wrote: Hi, opcode caches support is one of the problem we have with current implementation. 5.4.10 seems just can't work with any cache at all. Of course, I'll care about it, and may give suggestions for necessary APC changes. Do you have an example

Re: [PHP-DEV] Crashes in lex_scan at Zend/zend_language_scanner.c / BUG #52752

2012-12-19 Thread Stas Malyshev
Hi! I did come up with a problem in my server crashing with SIGBUS. After long testing/tracing found: https://bugs.php.net/bug.php?id=52752 Just tried to reproduce it on Centos 6.2 install (without APC), works just fine for me. I suspect it's some APC issue, does it reproduce for you

Re: [PHP-DEV] Crashes in lex_scan at Zend/zend_language_scanner.c / BUG #52752

2012-12-19 Thread Rasmus Lerdorf
On 12/19/2012 03:27 PM, Stas Malyshev wrote: Hi! I did come up with a problem in my server crashing with SIGBUS. After long testing/tracing found: https://bugs.php.net/bug.php?id=52752 Just tried to reproduce it on Centos 6.2 install (without APC), works just fine for me. I suspect it's

[PHP-DEV] VCS Account Rejected: sajith rejected by bjori

2012-12-19 Thread PHP Group
Nuked sajith -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] Crashes in lex_scan at Zend/zend_language_scanner.c / BUG #52752

2012-12-19 Thread Jani Ollikainen
On 19.12.2012 22:27, Stas Malyshev wrote: https://bugs.php.net/bug.php?id=52752 Just tried to reproduce it on Centos 6.2 install (without APC), works just fine for me. I suspect it's some APC issue, does it reproduce for you without APC loaded? Yes, as I mentioned in previous message and in

Re: [PHP-DEV] zend_parse_parameters() improvements

2012-12-19 Thread Nikita Popov
On Wed, Jul 18, 2012 at 11:05 PM, Gustavo Lopes glo...@nebm.ist.utl.ptwrote: Some deficiencies in zpp have been constrai ning the implementation of common scenarios such as 'allow integer or NULL'* or the more general 'allow different types for an argument'**. So I propose the changes in

Re: [PHP-DEV] Extension for str_replace / preg_replace with arrays

2012-12-19 Thread Larry Garfield
On 12/18/12 7:44 AM, Leigh wrote: On 18 December 2012 13:24, Stefan Neufeind neufe...@php.net wrote: Since we already have functionality for replacing with arrays in place, I wondered if giving it one string to replace and then an array to choose the replacement from (rotating) would be an

Re: [PHP-DEV] The built-in PHP web server is very cool!

2012-12-19 Thread Raymond Irving
Hi Patrick, Thanks for the feedback. I see your point and share some of your concerns. * It also cannot handle more than one request at a time...* In my case a standalone web app will only be deployed on a single computer and will only be used by one user at a time, so concurrency should not be

Re: [PHP-DEV] Extension for str_replace / preg_replace with arrays

2012-12-19 Thread Christopher Jones
On 12/19/2012 03:18 PM, Larry Garfield wrote: You could likely simplify the code even further using an infinite iterator: http://us1.php.net/infiniteiterator $result = preg_replace_callback( '/word/', function($matches) use ($replacements_iterator) { return

[PHP-DEV] Re: [PHP-CVS] com php-src: Added a test case for DateTimePoint.: ext/date/tests/date_time_point.phpt

2012-12-19 Thread Pierre Joye
hi Derick, On Wed, Dec 19, 2012 at 8:05 PM, Derick Rethans der...@php.net wrote: On Wed, 19 Dec 2012, Pierre Joye wrote: hi Derick, On Wed, Dec 19, 2012 at 6:53 PM, Derick Rethans der...@php.net wrote: Commit:7c74531e884aaa0a0bf6db76adb0e203cdb81c02 Author:Derick Rethans

Re: [PHP-DEV] Complete traits redesign for 5.5

2012-12-19 Thread Dmitry Stogov
Hi Rasmus, I'm not sure about APC, I saw the problem in ZendOptimizerPlus with php-5.4.10. O+ crashes (or corrupts memory and crashes on following requests) on each trait usage. The problem that PHP tries to deallocate names of methods defined in traits, but O+ keeps them in SHM. I believe APC