Re: [PHP-DEV] Feature Request - abtract + throws

2003-09-08 Thread Zeev Suraski
At 23:50 07/09/2003, Attila Strauss wrote: Hi, are there any plans about implementing the ability to provide throws for abstract classes? Nope, no plans. Zeev -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] before beta2 (is alive again) :-)

2003-09-08 Thread Justin Hannus
Hello All, IMHO. I agree with Andi, but the only way to I see fit to implement this is through polymorphism. If every object is a subclass of an Object class then passing a NULL reference would make more since and be perfectly legal. -Justin Hannus "Andi Gutmans" <[EMAIL PROTECTED]> wrote in me

[PHP-DEV] dom_document_get_element_by_id

2003-09-08 Thread John Huntjens
Is this function working? Test program: $dom = new domDocument(); $dom->load("test.xml"); $node = $dom->getElementById("id1"); print_r($node); Test file: It seems to me that always a emty object is returned? -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit

Re: [PHP-DEV] dom_document_get_element_by_id

2003-09-08 Thread Christian Stocker
On 9/8/03 5:11 PM, John Huntjens wrote: Is this function working? yes. see: http://bugs.php.net/bug.php?id=17629 http://bugs.php.net/bug.php?id=16647 for details chregu Test program: $dom = new domDocument(); $dom->load("test.xml"); $node = $dom->getElementById("id1"); print_r($node); Test f

Re: [PHP-DEV] dom_document_get_element_by_id

2003-09-08 Thread John Huntjens
> > Is this function working? > yes. > > see: > > http://bugs.php.net/bug.php?id=17629 > http://bugs.php.net/bug.php?id=16647 > > for details I do not understand the workaround? I am using latest cvs php5 capitalizing the ID's to gives no result. Should I define a DTD to find the ID's?

Re: [PHP-DEV] dom_document_get_element_by_id

2003-09-08 Thread Christian Stocker
On 9/8/03 5:25 PM, John Huntjens wrote: Is this function working? yes. see: http://bugs.php.net/bug.php?id=17629 http://bugs.php.net/bug.php?id=16647 for details I do not understand the workaround? I am using latest cvs php5 you have to define the ids with a DTD. there are no default "id"-a

Re: [PHP-DEV] dom_document_get_element_by_id

2003-09-08 Thread Christian Stocker
On 9/8/03 5:55 PM, Christian Stocker wrote: On 9/8/03 5:25 PM, John Huntjens wrote: or use XPath to access the nodes: "//@id='id1'" öööhm ;) this should better be "//[EMAIL PROTECTED]'id1']" AFAIK... chregu -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: ht

Re: [PHP-DEV] dom_document_get_element_by_id

2003-09-08 Thread John Huntjens
> you have to define the ids with a DTD. there are no default > "id"-attributes in the XML-specs. Ahh, that clarify's alot. > Add: > > > ]> > > to your XML document, and it should work. Thanks for your quick answer, this quireled me al day! > or use XPath to access the nodes: > "//@id='id

[PHP-DEV] Getting Script Name and Line Number From Extension

2003-09-08 Thread Bruce Bailey
Hi I would like to access the PHP script name and line number from within my C extension. Is there a function that I can call that will give me this information? I know I can call 'zend_error', but that really doesn't do what I want. Thanks in advance, Bruce ___

[PHP-DEV] Re: Getting Script Name and Line Number From Extension

2003-09-08 Thread Jay Smith
Bruce Bailey wrote: > Hi > > I would like to access the PHP script name and line number from within my > C extension. Is there a function that I can call that will give me this > information? I know I can call 'zend_error', but that really doesn't do > what I want. > > Thanks in advance, > >

Re: [PHP-DEV] implicit public peroperties

2003-09-08 Thread Brad Bulger
I hope that these fixes don't mean that the following is now on-purpose behavior: x); } } $b = new bar; ?> Output: Notice: Undefined property: bar::$x in ack.php on line 10 NULL On Wed, 3 Sep 2003, Marcus Börger wrote: > Hello Zeev, > > Friday, August 29, 2003, 10:15:57 AM, you wr

[PHP-DEV] CVS Account Request: djg

2003-09-08 Thread David Grant
Maintaining and documentation File_Ogg PEAR package. -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] implicit public peroperties

2003-09-08 Thread Marcus Börger
Hello Brad, funny i checked so many complex errors that i overlooked one of the more obvious errors. In your script an implicit public property would overwrite an inherited public one. During class inheritance the default value must now be copied from parent to child. The copy code however also wo

[PHP-DEV] Re: problem with interfaces

2003-09-08 Thread Cristiano Duarte
Did anyone think about it ? Any opinions ? Cristiano Duarte. "Cristiano Duarte" <[EMAIL PROTECTED]> escreveu na mensagem news:[EMAIL PROTECTED] > Hi all, > > Is this supposed to work? > > interface test { > function my_function ($mandatory_parameter); > } > > class test_class implements test