Re: [PHP-DEV] mysql_connect using version 5.0.1 accesses the internet when host and client are the same system

2004-09-16 Thread Cris H
ssues using a home-grown server a few years ago. This page (http://www.ethereal.com/media.html) has a bit more information in the differences between the loop-back mechanisms on each system. You may also want to check that everything is set up correctly in you

Re: [PHP-DEV] GOTO operator

2004-08-01 Thread Cris H
--- Sterling Hughes <[EMAIL PROTECTED]> wrote: > also, when you start quoting djikstra in a php context, you've > lost. > > goto is fine, fight the power! s/quoting djikstra/mentioning state machines/ also s/quoting djikstra/agonising about the algorithmic efficiency of goto versus switch/

Re: [PHP-DEV] New construct discussion Summary

2004-07-11 Thread Cris H
--- Marc Richards <[EMAIL PROTECTED]> wrote: > 3) So this leaves a function call which begs two questions: > What do we call it, [snip] > These include: ifset(), ifelse(), ifexists() and [snip] > nvl(), ifnull() and coalesce() have been proposed because of > This currently leaves us with a hand ful

Re: [PHP-DEV] what happened to that new isset() like language

2004-07-09 Thread Cris H
> That would satisfy some of the requested feature, but try > calling ifsetor($my_array['bad key'], > functionWithSideEffects()). That could be circumvented (somewhat hackishly, I concede) by recoding a new function and passing the second arg as the string "functionWithSideEffects" and using the

Re: [PHP-DEV] what happened to that new isset() like language

2004-07-09 Thread Cris H
Isn't this problem solvable with just a "User Space" function? $variable exists.'); } else{ $tmp = $alternate; echo('no $variable here.'); } return $tmp; } // no errors thrown ... $nonexistent = ifsetor($nonexistent); if

Re: [PHP-DEV] Fw: [PHP-DOC] #28994 [Opn]: pg_field_prtlen takes int instead of string as third argument

2004-07-03 Thread Cris H
--- Nuno Lopes <[EMAIL PROTECTED]> wrote: > Can anybody take a look into this, please? > >From having a look in the source, and more pain with pgsql than anyone should be subjected to, I think what's happening is a cross-confusion of two issues. You're right in that if you call it with three par

Re: [PHP-DEV] Zend API: Correct way to terminate entire request from within function

2004-07-02 Thread Cris H
--- Wez Furlong <[EMAIL PROTECTED]> wrote: > Looking at the opcode handler for exit, it looks > like you can call > zend_bailout() to terminate the request. > > Note that since exit is an opcode and not a > function, > call_user_function won't work. Thank you very much. A similar thought occurre

[PHP-DEV] Zend API: Correct way to terminate entire request from within function

2004-07-02 Thread Cris H
Hi all, I've been working on an extension which contains a "debugging function". This function uses zend_printf() to print a list of extension-specific information / help instructions to the screen, in a similar manner to phpinfo(). It was pointed out to me that this might be a useful function to