Re: [PHP-DEV] Re: function call chaining

2010-01-19 Thread Eddie Drapkin
On Tue, Jan 19, 2010 at 11:05 AM, Stanislav Malyshev s...@zend.com wrote: The second was next on my list, while the first seems to me kind of exotic - why create object only to call one method and immediately drop it? Why this method is not static then? Why would this imply dropping the

Re: [PHP-DEV] Re: function call chaining

2010-01-19 Thread Eddie Drapkin
On Tue, Jan 19, 2010 at 12:02 PM, Rasmus Lerdorf ras...@lerdorf.com wrote: Eddie Drapkin wrote: On Tue, Jan 19, 2010 at 11:05 AM, Stanislav Malyshev s...@zend.com wrote: The second was next on my list, while the first seems to me kind of exotic - why create object only to call one method

Re: [PHP-DEV] function call chaining

2010-01-18 Thread Eddie Drapkin
On Tue, Jan 19, 2010 at 2:14 AM, Alexey Zakhlestin indey...@gmail.com wrote: Would be nice if something like this worked too:    (new Class())-method(); I was just looking at some Java code and thinking, man I wish PHP did this. -- PHP Internals - PHP Runtime Development Mailing List To

Re: [PHP-DEV] __toString(), __toArray()

2010-01-12 Thread Eddie Drapkin
How does this have *anything* to do with the discussion at hand? On Tue, Jan 12, 2010 at 9:09 PM, mm w 0xcafef...@gmail.com wrote: don't worry it's only for people who are working with MVC and RootObject structure, there is too much magics already and __cast is not needed at all, as we cannot

Re: [PHP-DEV] __toString(), __toArray()

2010-01-12 Thread Eddie Drapkin
...@gmail.com wrote: the multiplication of magic, the pointed point, need to read more carefully On Tue, Jan 12, 2010 at 6:10 PM, Eddie Drapkin oorza...@gmail.com wrote: How does this have *anything* to do with the discussion at hand? On Tue, Jan 12, 2010 at 9:09 PM, mm w 0xcafef...@gmail.com wrote

Re: [PHP-DEV] [PATCH] fpm/typo: change some log about dynamic + homogenize log message about pool

2009-12-15 Thread Eddie Drapkin
On Tue, Dec 15, 2009 at 9:59 PM, Joey Smith j...@joeysmith.com wrote: On Tue, Dec 15, 2009 at 02:27:30PM -0800, Michael Shadle wrote: However if people have ideas on how this will help or be useful (i.e. you -are- planning on running logfiles or logwatch or something) then it might be smart to

Re: [PHP-DEV] Re: [PHP] PHP 6 and MySQL 5 for Dynamic Web Sites Book

2009-08-06 Thread Eddie Drapkin
On Thu, Aug 6, 2009 at 11:59 AM, Lester Caineles...@lsces.co.uk wrote: Eddie Drapkin wrote: On Thu, Aug 6, 2009 at 11:32 AM, teddtedd.sperl...@gmail.com wrote: At 5:34 PM -0700 8/5/09, sono...@fannullone.us wrote:       Has anyone read this book by Larry Ullman yet?  If so, what do you

Re: [PHP-DEV] mod_files.sh patch

2009-08-05 Thread Eddie Drapkin
2009/8/5 Johannes Schlüter johan...@schlueters.de: Hi, On Mon, 2009-08-03 at 01:20 -0400, Eddie Drapkin wrote: There's a script, mod_files.sh, in ext/session for creating directory tree with depth X for sessions.  As it stands, it's pretty poorly documented and very basic.  I got

[PHP-DEV] mod_files.sh patch

2009-08-02 Thread Eddie Drapkin
There's a script, mod_files.sh, in ext/session for creating directory tree with depth X for sessions. As it stands, it's pretty poorly documented and very basic. I got exceptionally bored and rewrote most of it, the patch is attached. It runs fine for me in linux (with sh version 4.0). I don't

[PHP-DEV] Re: mod_files.sh patch

2009-08-02 Thread Eddie Drapkin
On Mon, Aug 3, 2009 at 1:20 AM, Eddie Drapkinoorza...@gmail.com wrote: There's a script, mod_files.sh, in ext/session for creating directory tree with depth X for sessions.  As it stands, it's pretty poorly documented and very basic.  I got exceptionally bored and rewrote most of it, the patch

Re: [PHP-DEV] PHP CLI and opcode caches

2009-07-14 Thread Eddie Drapkin
On Tue, Jul 14, 2009 at 10:33 AM, Edward Z. Yangezy...@mit.edu wrote: Excerpts from Peter Wang's message of Mon Jul 13 05:34:33 -0400 2009: http://www.php.net/manual/en/apc.configuration.php#ini.apc.enable-cli is that what you want? Not really, since the manual even specifically states that

Re: [PHP-DEV] Type hinting/casting request for vote

2009-07-06 Thread Eddie Drapkin
On Mon, Jul 6, 2009 at 8:52 PM, Ilia Alshanetskyi...@prohost.org wrote: Last week or so there was a fairly detailed discussion on the internals list regarding type hinting based on my original patch. Since then the patch has been revised to address the major concerns that were identified

Re: [PHP-DEV] Re: PHP 5.3.0 Released!

2009-06-30 Thread Eddie Drapkin
On Tue, Jun 30, 2009 at 10:42 AM, Roman Borschelr.borsc...@gmx.net wrote: Some new 5.3 features like closures and the :? operator still cause bus errors with APC though. For the former there is already an open ticket since february. So I dont think APC is really 5.3 compatible yet but I'm sure

Re: [PHP-DEV] Test for edge cases with __get and property access flags

2009-06-05 Thread Eddie Drapkin
I thought this was the expected behaviour as well and I am quite sure that I've used it in an experiment (all class members private and _get() output escapes them) that failed pretty miserably. But I did think this was the expected behavior. Perhaps it ought to throw an E_STRICT? On Fri, Jun 5,

[PHP-DEV] PHP-FPM

2009-06-02 Thread Eddie Drapkin
I don't know how popular, or well known, this little tool is, but I was wondering if there was ever any consideration for it to be merged into the main CVS tree and distributed with part of PHP, instead of a 3rd party patch. Link: http://php-fpm.anight.org/ I'm pretty sure this is the right

Re: [PHP-DEV] PHP-FPM

2009-06-02 Thread Eddie Drapkin
So if I'd like to see this added to the source, I'd have to convince the author? It's been almost two years since that thread... On Tue, Jun 2, 2009 at 2:00 PM, Hannes Magnusson hannes.magnus...@gmail.com wrote: On Tue, Jun 2, 2009 at 19:46, Eddie Drapkin oorza...@gmail.com wrote: I don't

Re: [PHP-DEV] PHP scalability problem

2009-05-26 Thread Eddie Drapkin
1) PHP is Rarely The Bottleneck: http://talks.php.net/show/drupal08/http://talks.php.net/show/drupal08/7 2) Invest in an opcode cache 3) DB I/O is always the most restrictive part of your application, read the mysql performance blog (a lot applies for postgres too) 4) If you're serious about

Re: [PHP-DEV] PHP scalability problem

2009-05-26 Thread Eddie Drapkin
are just worker bees. They're great for shared-nothing processing engines. I can't think of a good metaphor right now other than that. On May 26, 2009, at 7:55 PM, Eddie Drapkin oorza...@gmail.com wrote: 1) PHP is Rarely The Bottleneck: http://talks.php.net/show/drupal08/http://talks.php.net

Re: [PHP-DEV] APM

2009-05-25 Thread Eddie Drapkin
Wheels were made to be reinvented! On Mon, May 25, 2009 at 7:07 PM, Olivier B. php-dev.l...@daevel.fr wrote: Hi, why not use reporting thought syslog ? It's standard and central aggregation is already available (thought TCP or databases). Olivier Patrick ALLAERT a écrit : Hi list,