Re: [PHP-DEV] Patch and RFC for adding DTrace probes to PHP

2009-07-14 Thread Alexey Zakhlestin
On Wed, Jul 15, 2009 at 1:31 AM, David Soria Parra wrote: > Hi List, > > in the last months I worked on adding DTrace probes to PHP and would > like to start a discussion about the RFC and patch against trunk > that can be found at: > >  http://wiki.php.net/rfc/dtrace > > DTrace is a dynamic tracin

Re: [PHP-DEV] Patch and RFC for adding DTrace probes to PHP

2009-07-14 Thread Sriram Natarajan
David I have been talking with some Drupal users and some of them showed lot of interest to be able to print out the function arguments as well as part of DTrace function-entry probes. - Sriram David Soria Parra wrote: Hi List, in the last months I worked on adding DTrace probes to PHP and

Re: [PHP-DEV] [PATCH] Bug #47481

2009-07-14 Thread Andrei Zmievski
On Mon, Jul 13, 2009 at 7:38 PM, Herman Radtke wrote: > This bug only exists in PHP 5.x. The unicode support in PHP 6 takes > care of it already, but I added a PHP 6 version of the test case as > well. > Looks good. -Andrei

Re: [PHP-DEV] Multithreaded C Gearman worker to run PHP scripts

2009-07-14 Thread Andrei Zmievski
Can you explain how this is different from the worker class provided by pecl/gearman? -Andrei On Tue, Jul 14, 2009 at 10:28 AM, Thomas Koch wrote: > Good evening Europe, good morning America, > > I hacked a gearman worker today that runs PHP scripts. As you can easily > spot > on first sight, I

Re: [PHP-DEV] ctype functions going, going, gone?

2009-07-14 Thread Andrei Zmievski
On Tue, Jul 14, 2009 at 1:58 PM, Keryx Web wrote: > Hi all! > > I am preparing a Server Side Scripting (using PHP) course for the Web > Standards Project Interact[1]. As I am going through security considerations > I note that the ctype functions are being used in the manual[2] and have not > bee

Re: [PHP-DEV] Patch and RFC for adding DTrace probes to PHP

2009-07-14 Thread Andrei Zmievski
On Tue, Jul 14, 2009 at 2:31 PM, David Soria Parra wrote: > In the current state the patch introduces a wrapper for the current > executor to fire function-entry probes. It was mentioned that it might > be useful to not use an own funciton for that. As I want to make things > cleaner for the curr

[PHP-DEV] Patch and RFC for adding DTrace probes to PHP

2009-07-14 Thread David Soria Parra
Hi List, in the last months I worked on adding DTrace probes to PHP and would like to start a discussion about the RFC and patch against trunk that can be found at: http://wiki.php.net/rfc/dtrace DTrace is a dynamic tracing framework for Solaris, OpenSolaris, Mac OSX and FreeBSD that can be use

[PHP-DEV] ctype functions going, going, gone?

2009-07-14 Thread Keryx Web
Hi all! I am preparing a Server Side Scripting (using PHP) course for the Web Standards Project Interact[1]. As I am going through security considerations I note that the ctype functions are being used in the manual[2] and have not been deprecated in 5.3. I have, however, been told that they

[PHP-DEV] Re: [PHP-CVS] Commit freeze is officially over

2009-07-14 Thread Knut Urdalen
Gwynne Raskind wrote: Any other issues, please bring them to my attention. Preferably via email, not IRC :). Are we going to have a similar page like the one for "Anonymous CVS Access" [1] for svn.php.net? Knut [1] http://www.php.net/anoncvs.php -- PHP Internals - PHP Runtime Development Ma

[PHP-DEV] Re: [PHP-CVS] Commit freeze is officially over

2009-07-14 Thread Gwynne Raskind
On Jul 14, 2009, at 4:36 PM, Knut Urdalen wrote: Any other issues, please bring them to my attention. Preferably via email, not IRC :). Are we going to have a similar page like the one for "Anonymous CVS Access" [1] for svn.php.net? Please in the future avoid cross-posting to seven lists; u

Re: [PHP-DEV] Multithreaded C Gearman worker to run PHP scripts

2009-07-14 Thread Johannes Schlüter
Hi, On Tue, 2009-07-14 at 19:28 +0200, Thomas Koch wrote: > So I'm happy for anybody interested to look over my work and help me to > become > better: > http://github.com/thkoch2001/gearman-php-worker/tree/master You are wrapping every call inside PHP_EMBED_START_BLOCK/_END_BLOCK calls. By this

Re: [PHP-DEV] Bus Error - Determining Script Name in GDB

2009-07-14 Thread Cristian Rodríguez
On 14/07/09 11:29, Bruce Bailey wrote: The problem appears to be in file_get_contents. Is there any way I can determine which script was being run at the time? yes, upgrade and: (gdb) source /path/to/php-src/.gdbinit (gdb) zbacktrace -- PHP Internals - PHP Runtime Development Mailing List

[PHP-DEV] Multithreaded C Gearman worker to run PHP scripts

2009-07-14 Thread Thomas Koch
Good evening Europe, good morning America, I hacked a gearman worker today that runs PHP scripts. As you can easily spot on first sight, I don't have many clues on C, threads and PHP internals. But it seems to kind of work. :-) So I'm happy for anybody interested to look over my work and help m

Re: [PHP-DEV] Bus Error - Determining Script Name in GDB

2009-07-14 Thread Derick Rethans
On Tue, 14 Jul 2009, Bruce Bailey wrote: > I am using PHP 5.2.3. In the Apache error log file I see: Please upgrade first. regards, Derick -- http://derickrethans.nl | http://ezcomponents.org | http://xdebug.org twitter: @derickr -- PHP Internals - PHP Runtime Development Mailing List To u

[PHP-DEV] Bus Error - Determining Script Name in GDB

2009-07-14 Thread Bruce Bailey
Hi I am using PHP 5.2.3. In the Apache error log file I see: [Mon Jul 13 16:15:32 2009] [notice] child pid 21521 exit signal Bus error (7) After many attempts, I have caught the following backtrace: (gdb) bt #0 0xb73447bc in memcpy () from /lib/libc.so.6 #1 0xb70a76f3 in _php_stream_copy_t

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. Yang 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 the op

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

2009-07-14 Thread Edward Z. Yang
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 the opcode cache will get created and destroyed. I think Thomas is l

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

2009-07-14 Thread Peter Wang
Thomas Koch writes: http://www.php.net/manual/en/apc.configuration.php#ini.apc.enable-cli is that what you want? > Hi, > > I have some PHP scripts to be run as daemons or as gearman workers. Now it > would be fine, if PHP could make use of an opcode cache also for CLI scripts. > > Is anybody a