Re: [PHP-DEV] resepcting naming/style conventions

2003-07-25 Thread Alan Knowles
Justin Hannus wrote: When writing an extension for an API (non-oop) that uses "studlyCaps" naming style, which naming style should be respected? PHP's underscore_delimited naming or the existing API's studlyCaps style? http://cvs.php.net/co.php/php-src/CODING_STANDARDS under_score_delimited basica

[PHP-DEV] Developer Newbie Questions

2003-07-25 Thread lists
Hello, I am presently trying to figure out the ZEND API, but am being thrown off a bit by some of the abbreviations. Is there any documentation out there that explains what the abbreviations mean? For example TSRMLS_* Also how would one go about getting the value of a user defined

[PHP-DEV] PHP dumps core loading extension - more information

2003-07-25 Thread Bruce Bailey
A new discovery . . . I created a new extension with only one function and it calls a dso library that also has only one function. So the libraries are: php --> my new extension --> my new utility library. the new utility library has only this function: int function1(void){return 456;} When

[PHP-DEV] Feature Request: array declaration

2003-07-25 Thread walt boring
Howdy, I hope this isn't too late in the game for PHP5, but I thought I'd throw out a request for a feature for array() declaration. I'd like to be able to be lazy and declare something like $foo = array('A' <=> 'Admin', 'C' <=> 'Customer'); which is really just a shortcut way to declare $

Fwd: [PHP-DEV] PHP dumps core loading extension

2003-07-25 Thread Bruce Bailey
I should have thought of including a backtrace before: (gdb) bt #0 0x030002891c30 in ?? () #1 0x03ff800dd7d0 in exit () from /usr/shlib/libc.so #2 0x03ff800dd7d0 in exit () from /usr/shlib/libc.so Cannot access memory at address 0x20 (gdb) From: "Bruce Bailey" <[EMAIL PROTECTED]>

Re: [PHP-DEV] PHP dumps core loading extension

2003-07-25 Thread George Schlossnagle
A backtrace would be useful. On Friday, July 25, 2003, at 01:55 PM, Bruce Bailey wrote: I hope this is the right place for this type of question. If not, please let me know a more appropriate forum. -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php

[PHP-DEV] PHP dumps core loading extension

2003-07-25 Thread Bruce Bailey
I hope this is the right place for this type of question. If not, please let me know a more appropriate forum. I have a PHP extension (written in C) that calls a utility library that I wrote in C++. For my testing and debugging, I have been trying to exercise my code using PHP from the comman

[PHP-DEV] resepcting naming/style conventions

2003-07-25 Thread Justin Hannus
When writing an extension for an API (non-oop) that uses "studlyCaps" naming style, which naming style should be respected? PHP's underscore_delimited naming or the existing API's studlyCaps style? -- Justin Hannus -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit:

Re: [PHP-DEV] [THTTPD SAPI] Patch for implementing missing getenv

2003-07-25 Thread Moriyoshi Koizumi
Elfyn McBratney <[EMAIL PROTECTED]> wrote: > When you need to send patches to this list you have to append .txt to the > filename (as IIRC, most if not all but .txt attachments are stripped from > the mail). That trick is known not to be applied to Sylpheed :) It looks like the list manager dro

Re: [PHP-DEV] [THTTPD SAPI] Patch for implementing missing getenv

2003-07-25 Thread Uwe Schindler
This problem is in all multi-threaded SAPIs. Because of this the array $_SERVER is there. Scripts programmed for PHP 4+ should never use getenv() to get server variables. For example in the NSAPI module you get the environment of the webserver itself, never a CGI env. CGI env only works for Ap

Re: [PHP-DEV] [THTTPD SAPI] Patch for implementing missing getenv

2003-07-25 Thread Elfyn McBratney
On Fri, 25 Jul 2003, Mattias Wadman wrote: > On Fri, 25 Jul 2003 14:10:02 +0200 > Magnus Maatta <[EMAIL PROTECTED]> wrote: > > > On Fri, 25 Jul 2003 13:47:54 +0200 > > Mattias Wadman <[EMAIL PROTECTED]> wrote: > > > > > Hello > > > > > > I submitted the bug http://bugs.php.net/?id=24802 and [EM

Re: [PHP-DEV] [THTTPD SAPI] Patch for implementing missing getenv

2003-07-25 Thread Mattias Wadman
On Fri, 25 Jul 2003 14:10:02 +0200 Magnus Maatta <[EMAIL PROTECTED]> wrote: > On Fri, 25 Jul 2003 13:47:54 +0200 > Mattias Wadman <[EMAIL PROTECTED]> wrote: > > > Hello > > > > I submitted the bug http://bugs.php.net/?id=24802 and [EMAIL PROTECTED] told me to > > resend it to you. I also attach

Re: [PHP-DEV] [THTTPD SAPI] Patch for implementing missing getenv

2003-07-25 Thread Magnus Maatta
On Fri, 25 Jul 2003 13:47:54 +0200 Mattias Wadman <[EMAIL PROTECTED]> wrote: > Hello > > I submitted the bug http://bugs.php.net/?id=24802 and [EMAIL PROTECTED] told me to > resend it to you. I also attach a non-web-form-mangled patch. > > Hope you like the patch. Where is the patch ? =) /Mag

[PHP-DEV] [THTTPD SAPI] Patch for implementing missing getenv

2003-07-25 Thread Mattias Wadman
Hello I submitted the bug http://bugs.php.net/?id=24802 and [EMAIL PROTECTED] told me to resend it to you. I also attach a non-web-form-mangled patch. Hope you like the patch. -Mattias -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php