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 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
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
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
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
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
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
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
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
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 ==
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
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
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
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:
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
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 () {
16 matches
Mail list logo