Re: [PHP-DEV] [PATCH] Send errors to stderr instead of stdout

2004-07-17 Thread Wez Furlong
Two technical points: 1/ You *must not* use php_stream_from_zval except within a PHP_FUNCTION unless you really know what you're doing. Use php_stream_from_zval_no_verify instead, and manually check to see if you ended up with a valid stream pointer. The segfault problem you had was because you

[PHP-DEV] [PATCH] Send errors to stderr instead of stdout

2004-07-17 Thread Johannes Schlueter
Hi, while developping some shell scripts with PHP-cli I've got annoyed that PHP sends its error messages to STDOUT instead of STDERR so I've written the attached patch. I see two possible problems with this patch where I'm not sure if one of the is really critical: - it uses the PHP STDERR c

Re: [PHP-DEV] Re: Question from a new module developer

2004-07-17 Thread David Carter
Well, on the surface it looks good, but the apache2filter and apache2handler sections say it returns a structure that has the request_rec as a member. I'll try it but it looks flaky... Dave On Sat, 2004-07-17 at 09:35, Justin Hannus wrote: > David Carter wrote: > > Hi, > > > > I'm developing a

RE: [PHP-DEV] Write a PHP function in C

2004-07-17 Thread Michael Sims
[EMAIL PROTECTED] wrote: > I am looking for a little HowTo/Tutorial how am I able to add new > features to PHP - perhaps as a module (dont know if it is possible) > or as a lib or as something else.. .:) The last few chapters of George Schlossnagle's "Advanced PHP Programming" are devoted to this

[PHP-DEV] Re: Question from a new module developer

2004-07-17 Thread Justin Hannus
David Carter wrote: Hi, I'm developing a standalone module that needs to hook into another Apache module. I need a pointer to a request record (request_rec) to make the apache call, but I can't seem to find how to access one from a module. (or alternatively, a way to get a current request from with

Re: [PHP-DEV] Re: Write a PHP function in C

2004-07-17 Thread Wez Furlong
Be warned that parts of it are somewhat out of date, but the basics are still applicable. --Wez. On Sat, 17 Jul 2004 10:31:55 +0200, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > Every tried the php-documentation? ;) > Oooops :) my fault... > > Thanks will work it througth -- PHP Internals

Re: [PHP-DEV] Re: Write a PHP function in C

2004-07-17 Thread [EMAIL PROTECTED]
> Every tried the php-documentation? ;) Oooops :) my fault... Thanks will work it througth Christian -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-DEV] Re: Write a PHP function in C

2004-07-17 Thread Thomas Seifert
On Sat, 17 Jul 2004 10:00:17 +0200, [EMAIL PROTECTED] wrote: > I am looking for a little HowTo/Tutorial how am I able to add new features to > PHP - perhaps as a module (dont know if it is possible) or as a lib or as > something else.. .:) Every tried the php-documentation? ;) http://www.php.

[PHP-DEV] Write a PHP function in C

2004-07-17 Thread [EMAIL PROTECTED]
Hi, sometimes I miss some functions in PHP. Most of the times I write this function in PHP and put this function(s) in a extra file and include this file in every project I have. Now I want to write those functions I have collected over years in C. 1. for training 2. that i don't need to inc