[PHP] Re: setlocale and pt_BR problem on debian

2005-03-26 Thread Christian Stadler
. Is pt_BR being listed, when you execute locale -a on the commandline? system('locale -a'); should do the trick, if you don't have shell access. Regards, Christian Stadler -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.0 (MingW32) Comment: Using GnuPG with Thunderbird - http

[PHP] Re: is_a() against instanceof

2005-03-20 Thread Christian Stadler
var_dump(class_exists('foobar') AND ($a instanceof foobar)); triggered an error on the commandline. So I guess, both and AND should work. Regards, Christian Stadler -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.0 (MingW32) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

[PHP] Re: is_a() against instanceof

2005-03-15 Thread Christian Stadler
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Eli schrieb: - ($cls instanceof ClassName) *requires* from ClassName to be declared, and generates a fatal error when ClassName is not declared. How about if (class_exists('ClassName') AND $cls instanceof ClassName) { ... } Regards, Christian