Re: [PHP-DEV] why to call php_output_activate(TSRMLS_C) from php_module_startup(reposting first time)(bug #30397)

2004-10-18 Thread Kamesh Jayachandran
Can someone respoond to this. With regards Kamesh Jayachandran On Thu, 07 Oct 2004 23:10:24 -0700, Kamesh Jayachandran [EMAIL PROTECTED] said: Hi All, I could see php_output_activate(TSRMLS_C) getting called from php_module_startup immedeately after php_output_startup. Why is this needed?

[PHP-DEV] PHP 5 Bug Summary Report

2004-10-18 Thread internals
PHP 5 Bug Database summary - http://bugs.php.net Num Status Summary (429 total including feature requests) ===[*Compile Issues]== 28103 Open During ./configure you get png error instead of iodbc 28297 Open (SNMP) make

Re: [PHP-DEV] Type hints with null default values

2004-10-18 Thread Ron Korving
Robert Silva wrote: What I propose is something like: if the typehinted parameter is optional and the user doesn't pass it, the only type it can have (at least now) is null. So, if you, as a developer, want a function to have optional typehinted parameters, you must check for null to test

Re: [PHP-DEV] why to call php_output_activate(TSRMLS_C) from php_module_startup(reposting first time)(bug #30397)

2004-10-18 Thread Zeev Suraski
At 08:52 18/10/2004, Kamesh Jayachandran wrote: Can someone respoond to this. With regards Kamesh Jayachandran On Thu, 07 Oct 2004 23:10:24 -0700, Kamesh Jayachandran [EMAIL PROTECTED] said: Hi All, I could see php_output_activate(TSRMLS_C) getting called from php_module_startup immedeately

[PHP-DEV] Nesting level too deep - recursive dependency?

2004-10-18 Thread Francisco M. Marzoa Alonso
This code: ?php class TestClass { public $myself; function __construct () { $this-myself = $this; } } $TestObj = new TestClass (); if ( $TestObj-myself == $TestObj ) { echo They are same.\n; } ? Gives me a Fatal error: Nesting level too deep - recursive dependency? on line

Re: [PHP-DEV] why to call php_output_activate(TSRMLS_C) from php_module_startup(reposting first time)(bug #30397)

2004-10-18 Thread Marcus Boerger
Hello Zeev, Monday, October 18, 2004, 11:14:20 AM, you wrote: At 08:52 18/10/2004, Kamesh Jayachandran wrote: Can someone respoond to this. With regards Kamesh Jayachandran On Thu, 07 Oct 2004 23:10:24 -0700, Kamesh Jayachandran [EMAIL PROTECTED] said: Hi All, I could see

[PHP-DEV] [Fwd: PHPGTK.NET -- want it?]

2004-10-18 Thread Ben Ramsey
I forwarded this here because I figured it's the best place for it. This person will donate phpgtk.net to the PHP Group for free, so long as the domain name goes to the official PHP-GTK project and not to any one individual. Contact them for information regarding the transfer of name, if

Re: [PHP-DEV] Type hints with null default values

2004-10-18 Thread Jason Garber
Hello, Consider this: public function foo(MyClass $o) If you allow null, false, or anything else, you must CHECK it before using it or you will get a calling a method on a non-object first. The whole point of having a type hint, from my point of view, is so the majority of time I DO

RE: [PHP-DEV] Type hints with null default values

2004-10-18 Thread Andi Gutmans
Hi, First of all, I think most agree that it'd be nice to be able to distinct between class instances only, and class instances w/ NULL. However, the main problem was how to specify this in a way which would be very easy to understand and without over-complicating PHP (I wouldn't want to add

Re: [PHP-DEV] Nesting level too deep - recursive dependency?

2004-10-18 Thread Andi Gutmans
Are you using zend.zend1_compatibility_mode on? Andi At 05:39 PM 10/18/2004 +0200, Francisco M. Marzoa Alonso wrote: This code: ?php class TestClass { public $myself; function __construct () { $this-myself = $this; } } $TestObj = new TestClass (); if ( $TestObj-myself ==

RE: [PHP-DEV] Type hints with null default values

2004-10-18 Thread Robert Silva
Based on the issues you listed, how about: function Method((MyClass) $obj); function Method([MyClass] $obj); Surrounding the class type in () or [] thereby marking it as optional. Much like you would do when commenting a function to take an optional parameter. Bob Silva -Original

RE: [PHP-DEV] Type hints with null default values

2004-10-18 Thread Robert Cummings
On Mon, 2004-10-18 at 22:09, Robert Silva wrote: Based on the issues you listed, how about: function Method((MyClass) $obj); function Method([MyClass] $obj); Surrounding the class type in () or [] thereby marking it as optional. Much like you would do when commenting a function to take an

RE: [PHP-DEV] Type hints with null default values

2004-10-18 Thread Robert Silva
I think an interface would be more appropriate than allowing multiple class types. Null would be an implied value and you cant really type hint scalars due to php's dynamic type system. If both classes don't subscribe to a defined interface, then all the code you would have to write to handle

RE: [PHP-DEV] Type hints with null default values

2004-10-18 Thread Andi Gutmans
I think it's an interesting idea (the []). I have to think about that one, if it's too confusing and if it's better than something like nullable. BTW, I think it has to be class or NULL. I don't believe any other type should be allowed. Andi At 07:09 PM 10/18/2004 -0700, Robert Silva wrote:

Re: [PHP-DEV] Nesting level too deep - recursive dependency?

2004-10-18 Thread Greg Beaver
Andi Gutmans wrote: Are you using zend.zend1_compatibility_mode on? Andi The same apparent bug exists on my windows xp system, independent of the sapi, with zend1_compatibility off. It was also in the 5.0.0 release, so is not an introduction since then. Greg -- PHP Internals - PHP Runtime

Re: [PHP-DEV] Nesting level too deep - recursive dependency?

2004-10-18 Thread Benj Carson
If you use '===' it works as expected. I don't know if the fact that '==' doesn't work is a bug or not, however. Benj Carson On October 18, 2004 09:39 am, Francisco M. Marzoa Alonso wrote: This code: ?php class TestClass { public $myself; function __construct () {