ID:               20118
 Updated by:       [EMAIL PROTECTED]
 Reported By:      [EMAIL PROTECTED]
-Status:           Open
+Status:           Bogus
 Bug Type:         Feature/Change Request
 Operating System: linux (probablly windows also)
 PHP Version:      4.3


Previous Comments:
------------------------------------------------------------------------

[2002-11-13 15:42:15] [EMAIL PROTECTED]

bogus report, but the "testing::boo" for function definitions and
function boo(); inside a class should still be possible - atleast for
5.0

its bogus because i didnt have aggregate support compiled in 4.2.3
(since its disabled by default for some reason)

------------------------------------------------------------------------

[2002-10-27 06:52:25] [EMAIL PROTECTED]

if i agregate an object which is defined as such:

class something extends content { ... }

with a class making use of "parent::", it gives me a "no parent class
available" - when it should recognise content as its parent

if i had no "extends content" i would think of this as valid, but this
way i dont - parent:: should be available if the object which
aggregates a class has a parent

perhaps something like the following should be considered as an example
how method aggregation should work in 5.x (also the way it works in
c++, basically i just did something i think is a php ekvivalent)

<?php

class testing
{
        function testing() {}
        function boo();
}

function testing::boo() {
        echo "a";
}


$classss = new testing;
$classss->boo();

?>

this way i could put functions into seperate files instead of having a
100k file with the class (if it requires that much code) -> having 10
5k files is easier to maintain than 1 50k file.

------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=20118&edit=1

Reply via email to