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 mus

[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 wrote: > On Wed, 19 Dec 2012, Pierre Joye wrote: > >> hi Derick, >> >> On Wed, Dec 19, 2012 at 6:53 PM, Derick Rethans wrote: >> > Commit:7c74531e884aaa0a0bf6db76adb0e203cdb81c02 >> > Author:Derick Rethans Mon, 17 Dec >

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 $replacements->

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 Larry Garfield
On 12/18/12 7:44 AM, Leigh wrote: On 18 December 2012 13:24, Stefan Neufeind 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 option. Currently th

Re: [PHP-DEV] zend_parse_parameters() improvements

2012-12-19 Thread Nikita Popov
On Wed, Jul 18, 2012 at 11:05 PM, Gustavo Lopes wrote: > 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 this branch: > > http

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 th

[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 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

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 wit

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 exa

[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 wrote: > > Commit:7c74531e884aaa0a0bf6db76adb0e203cdb81c02 > > Author:Derick Rethans Mon, 17 Dec > > 2012 16:35:52 + > > Parents: d4acb579df4c78acaaff3e90698277e62aac2

[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 wrote: > Commit:7c74531e884aaa0a0bf6db76adb0e203cdb81c02 > Author:Derick Rethans Mon, 17 Dec 2012 > 16:35:52 + > Parents: d4acb579df4c78acaaff3e90698277e62aac > Branches: immutable-date > > Link: > http

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

2012-12-19 Thread Patrick ALLAERT
2012/12/19 Raymond Irving : > 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 development purpose onl

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 wrote: > On Wed, Dec 19, 2012 at 10:05 AM, Raymond Irving > 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

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 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 any other >

[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 wa

[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 h

[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 h

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 unsubscribe,