Hello internals,

version 5 does neither support nested classes nor conditional classes.
Not supporting the former is a bit of a loss but the latter leads to
ugly software design so no worry here.

Anyway i tried the test script with 4.3.5-dev and there conditional
classes are present but not working. Hence i suggest we disable or fix
them.

Further more i think we cannot fix it becasue the script mixes compile
time and run time. It tries something like selfmodifying code.


Since i think it is ugly software design anyways i am pro disabling.

[EMAIL PROTECTED] /usr/src/PHP_4_3_0 $ php -r 'if (1) {class a{function f(){return 
1;}}}else{class a{function f(){return 0;}}}echo a::f()."\n";'
0
[EMAIL PROTECTED] /usr/src/PHP_4_3_0 $ php -r 'if (0) {class a{function f(){return 
1;}}}else{class a{function f(){return 0;}}}echo a::f()."\n";'
0

-- 
Best regards,
 Marcus                          mailto:[EMAIL PROTECTED]

-- 
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to