NuSphere Forums Forum Index
NuSphere Forums
Reply to topic
Array type hinting not supported and some other bugs


Joined: 02 Dec 2004
Posts: 21
Reply with quote
Hi.
here there are some tiny bugs
1)
It seems that last release of PhpEd (build 4513) doesn't support array type hinting, introduced in PHP since 5.1.
PhpEd underline as an error the type "array" in the following code:
Code:

<?php
    class MyClass {
        public function MyMethod(array $MyArray){
            return;
        }   
    }
?>


2)
Autocorrection doesn't work properly with certain word:
if I set ask to correct "teh" to "the" all works, but if I ask to correct "<br>" to "<br />" nothing happen.
A work around should be asking to correct "br" to "br /"

3)
In my opinion you should let inline preformatted HTML end with />, for eg.:
Now is:
Code:
<input type="text" name="mytext">

but it should be:
Code:
<input type="text" name="mytext" />


Thank you
Nico
View user's profileFind all posts by nicotSend private message
Site Admin

Joined: 13 Jul 2003
Posts: 8342
Reply with quote
Thanks for your comments.

1) indeed, it's our omission and will be fixed in build 4520
2) yet, autocorrection works for words, not for delimiters.
3) probably you mean XHTML, not HTML. In HTML 4.0.1 or before it is not required. Anyway, I think we'd better support XHTML too. I'll look into it closer in the next version.
View user's profileFind all posts by dmitriSend private messageVisit poster's website


Joined: 02 Dec 2004
Posts: 21
Reply with quote
ddmitrie wrote:
Thanks for your comments.

1) indeed, it's our omission and will be fixed in build 4520

Great.
ddmitrie wrote:

3) probably you mean XHTML, not HTML. In HTML 4.0.1 or before it is not required. Anyway, I think we'd better support XHTML too. I'll look into it closer in the next version.

Yes I did and yes you should Smile .
Thank you.
View user's profileFind all posts by nicotSend private message
Site Admin

Joined: 13 Jul 2003
Posts: 8342
Reply with quote
4.5.1 is just released and "array" typehint is supported in this version (i.e. it is not underlined as error)
as of the XHTML, it won't be changed until the next major version.
So I think we're all set with this post Smile
View user's profileFind all posts by dmitriSend private messageVisit poster's website
Array type hinting not supported and some other bugs
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT - 5 Hours  
Page 1 of 1  

  
  
 Reply to topic