-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi,
> The idea also won't work with variables and unresolved constants as > "case" labels (I saw your extension already carries about this limitation). Yeah constants are the reason why I perform the optimization at runtime. Because the moment a switch is executed the constants should be available, because otherwise the switch() does not make sense. And at that point the constant cannot change anymore. That is the reason why compiletime / optimization time optimization is a problem. And yes variables and function calls in CASEs are a problem. That is why I am not supporting them (and will not). After all there are people that "abuse" switch() as OR. Stefan -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.8 (Darwin) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAkiTJYkACgkQSuF5XhWr2niH/gCfVhl1xoED9IdEUUPvUgKlxtaI 31gAoJdnpFssybdbqfwYC8XUDpMdfUWY =8mem -----END PGP SIGNATURE----- -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php