theseer / Autoload

A lightweight php namespace aware autoload generator and phar archive builder
Other
388 stars 47 forks source link

Class redeclaration detection too strict #19

Closed spriebsch closed 13 years ago

spriebsch commented 13 years ago

Zend Framework, at least 1.10, uses conditional class definitions, for example in Zend/InfoCard/Exception.php. phpab should ignore redefinitions within the same file.

if (class_exists("Zend_Exception")) {
    abstract class Zend_InfoCard_Exception_Abstract extends Zend_Exception
    {
    }
} else {
    abstract class Zend_InfoCard_Exception_Abstract extends Exception
    {
    }
}
theseer commented 13 years ago

phpab --help | grep tolerant

;-P

sebastianbergmann commented 13 years ago

Seeing Stefan's face while reading your comment ... priceless ;-)