RE: [PHP-DEV] Calling method on non-object recoverable? (was: typehinting throwing a fatal error)

2005-08-26 Thread Michael Sims
Derick Rethans wrote: >> Since this new error level is being created, I have a suggestion for >> another type of error I would very much like to see changed from >> fatal to "recoverable". The error I'm referring to is attempting to >> call a method on a non-object. This used to be a E_WARNING a

[PHP-DEV] Calling method on non-object recoverable? (was: type hinting throwing a fatal error)

2005-08-25 Thread Michael Sims
Derick Rethans wrote: > I implemented that (except I dropped the _ERROR part for > E_RECOVERABLE_ERROR as I found it too long). The patch is here: > > http://files.derickrethans.nl/patches/e_fatal-20050825.diff.txt > > Any comments? Since this new error level is being created, I have a suggestion

RE: [PHP-DEV] type hinting throwing a fatal error

2005-08-08 Thread Michael Sims
Derick Rethans wrote: > Hei, > > currently if you pass a wrong object's type to a typehinted parameter: [...] > Fatal error: Argument 1 must be an instance of foo in /tmp/foo.php on > line 3 > > As type hinting is a new OO thing, it might perhaps make some sense to > make this an except

RE: [PHP-DEV] [PATCH] --with-ODBCRouter (database networking)

2005-01-11 Thread Michael Sims
Andi Gutmans wrote: > At 09:02 AM 1/7/2005 -0800, AugSoft wrote: >> + This patch enables PHP's ODBC extension on >> certain non-Windows platforms (Linux, Mac OS X, > > Just out of curiosity, how does ODBC Router differ from the other ODBC > bridge solutions out there? Sorry for the arguably off-to

RE: [PHP-DEV] PostgreSQL driver handles boolean values incorrectly...

2004-11-07 Thread Michael Sims
Sean Chittenden wrote: > A boolean value is returned as the strings 't' and 'f', not the > constants true and false. This presents all kinds of interesting > oddities for code that does something like: [...] You're probably already aware of this, but you can use a bit(1) field as a boolean and th

RE: [PHP-DEV] CLI Constant

2004-09-30 Thread Michael Sims
Jason Garber wrote: > Hello internals, > > What is the best way, from within a php script, to tell that the > script is being run on the command line? > > I've used if(defined('STDIN')) but that seems kind of kludgey. I've used if (php_sapi_name() == 'cli') ... which seems to work wel

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] Question about recent change to sybase module

2004-05-05 Thread Michael Sims
(Please forgive me if this is not the right forum for this question. This isn't exactly a bug so I didn't feel it was right to open a bug report.) I have a question about a change that was made to ext/sybase/php_sybase_db.c between PHP versions 4.3.3 and 4.3.4. I'm referring specifically to revi

Re: [PHP-DEV] Make switch/case to type sensitive comparison in PH P 5?

2003-03-26 Thread Michael Sims
On Wed, 26 Mar 2003 17:08:25 -, you wrote: >Choosing between "case 0:" and (say) "case_identical 0:" would only be the >same as choosing between == and === in an if statement -- it would just give >the opportunity to do it using the elegant switch structure instead of the >clumsy if...elseif..