I'm trying to use an external library. Because there are some conflicts I'm using namespaces ( php 5.3 )
The goal is not to change the external library at all ( just adding the namespaces at the top)
The problem is inside the library there are several situations that don't work
is_a($obj,'3thpartyclassname')only works if I add the namespace in front of 3thpartyclassname- the 3th party uses native classes but they don't work only if I apped the global space (
new \Exception)
Any way to make this work with no modifications ?
Update use \Exception as Exception; fix problem 2
I only have problems with is_a and is_subclass_of. Both of them need the namespace and ignore the current namespace.