mirror of
https://github.com/doctrine/orm.git
synced 2026-03-24 06:52:09 +01:00
DDC-1650: PHP 5.3.2 compatibility #2071
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @doctrinebot on GitHub (Feb 13, 2012).
Originally assigned to: @Ocramius on GitHub.
Jira issue originally created by user ooflorent:
When triggering travis build under PHP 5.3.2, the build fails.
Fatal error: Class '\Doctrine\Tests\DbalTypes\UpperCaseStringType' not found in /home/vagrant/builds/ooflorent/doctrine2/lib/vendor/doctrine-dbal/lib/Doctrine/DBAL/Types/Type.php on line 144Call Stack:
1. {main}() /home/vagrant/.phpenv/versions/5.3.2/bin/phpunit:0 2. PHPUnit*TextUI*Command::main() /home/vagrant/.phpenv/versions/5.3.2/bin/phpunit:46 3. PHPUnit*TextUI*Command->run() /home/vagrant/.phpenv/versions/5.3.2/share/pyrus/.pear/php/PHPUnit/TextUI/Command.php:130 4. PHPUnit*TextUI*TestRunner->doRun() /home/vagrant/.phpenv/versions/5.3.2/share/pyrus/.pear/php/PHPUnit/TextUI/Command.php:192 5. PHPUnit*Framework*TestSuite->run() /home/vagrant/.phpenv/versions/5.3.2/share/pyrus/.pear/php/PHPUnit/TextUI/TestRunner.php:325 6. PHPUnit*Framework*TestSuite->run() /home/vagrant/.phpenv/versions/5.3.2/share/pyrus/.pear/php/PHPUnit/Framework/TestSuite.php:705 7. PHPUnit*Framework*TestSuite->runTest() /home/vagrant/.phpenv/versions/5.3.2/share/pyrus/.pear/php/PHPUnit/Framework/TestSuite.php:745 8. PHPUnit*Framework*TestCase->run() /home/vagrant/.phpenv/versions/5.3.2/share/pyrus/.pear/php/PHPUnit/Framework/TestSuite.php:772 9. PHPUnit*Framework*TestResult->run() /home/vagrant/.phpenv/versions/5.3.2/share/pyrus/.pear/php/PHPUnit/Framework/TestCase.php:751 10. PHPUnit*Framework*TestCase->runBare() /home/vagrant/.phpenv/versions/5.3.2/share/pyrus/.pear/php/PHPUnit/Framework/TestResult.php:649 11. Doctrine\Tests\ORM\Functional\TypeValueSqlTest->setUp() /home/vagrant/.phpenv/versions/5.3.2/share/pyrus/.pear/php/PHPUnit/Framework/TestCase.php:801 12. Doctrine\Tests\OrmFunctionalTestCase->setUp() /home/vagrant/builds/ooflorent/doctrine2/tests/Doctrine/Tests/ORM/Functional/TypeValueSqlTest.php: 13. Doctrine\ORM\EntityManager->getClassMetadata() /home/vagrant/builds/ooflorent/doctrine2/tests/Doctrine/Tests/OrmFunctionalTestCase.php:272 14. Doctrine\ORM\Mapping\ClassMetadataFactory->getMetadataFor() /home/vagrant/builds/ooflorent/doctrine2/lib/Doctrine/ORM/EntityManager.php:269 15. Doctrine\ORM\Mapping\ClassMetadataFactory->loadMetadata() /home/vagrant/builds/ooflorent/doctrine2/lib/Doctrine/ORM/Mapping/ClassMetadataFactory.php:178 16. Doctrine\ORM\Mapping\Driver\AnnotationDriver->loadMetadataForClass() /home/vagrant/builds/ooflorent/doctrine2/lib/Doctrine/ORM/Mapping/ClassMetadataFactory.php:293 17. Doctrine\ORM\Mapping\ClassMetadataInfo->mapField() /home/vagrant/builds/ooflorent/doctrine2/lib/Doctrine/ORM/Mapping/Driver/AnnotationDriver.php:327 18. Doctrine\ORM\Mapping\ClassMetadataInfo->_validateAndCompleteFieldMapping() /home/vagrant/builds/ooflorent/doctrine2/lib/Doctrine/ORM/Mapping/ClassMetadataInfo.php:1735 19. Doctrine\DBAL\Types\Type::getType() /home/vagrant/builds/ooflorent/doctrine2/lib/Doctrine/ORM/Mapping/ClassMetadataInfo.php:1074@doctrinebot commented on GitHub (Feb 20, 2012):
Comment created by @beberlei:
Does this only fail exactly with 5.3.2? What could be the issue?
@doctrinebot commented on GitHub (Apr 3, 2012):
Comment created by @ocramius:
Also, knowing the travis build url could help :)
@doctrinebot commented on GitHub (Apr 6, 2012):
Comment created by ooflorent:
Sorry about the long inactivity period...
The travis build URL is http://travis-ci.org/#!/ooflorent/doctrine2
@doctrinebot commented on GitHub (Jul 8, 2012):
Comment created by @ocramius:
I think this may be solved.in DBAL by putting a
trim()at1ca9db4f43/lib/Doctrine/DBAL/Types/Type.php (L170)@doctrinebot commented on GitHub (Jul 10, 2012):
Comment created by @ocramius:
Couldn't reproduce on 5.3.2, and seems like the build points to a non existing repository (you have deleted it from your github).
What did you alter exactly? Do you remember that?
Because with the same call stack, and having verified that
class_exists('Doctrine\Tests\DbalTypes\UpperCaseStringType', false) === falsebefore that call toDoctrine\DBAL\Types\Type::getType()it doesn't cause the fatal.@doctrinebot commented on GitHub (Jul 11, 2012):
Issue was closed with resolution "Cannot Reproduce"