PHP 5 && OO && performance && exceptions

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello, 

 

Currently I'm make some utilities classes and I took the idea from java to make some wrappers class like String, Integer and so on. This allows me to use the type hint for basic types in php.  Anyone have a clue if replacing the all in one type in php for objects types will degrade the performance?

 

Also for every controller class that I'm making I'm also making exceptions class of every error that it can generate.  Same questions: It will degrade performance to throw an exception instead of lest say a pear error or return false?

 

Just for know, I'm doing this because I believe that it will eliminate some o problems o development and will eliminate some basic validations.





Any tips appreciate



Angelo




[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux