DDC-1650: PHP 5.3.2 compatibility #2071

Closed
opened 2026-01-22 13:39:35 +01:00 by admin · 6 comments
Owner

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 144

Call 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

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 144` Call 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`
admin added the Bug label 2026-01-22 13:39:35 +01:00
admin closed this issue 2026-01-22 13:39:35 +01:00
Author
Owner

@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 (Feb 20, 2012): Comment created by @beberlei: Does this only fail exactly with 5.3.2? What could be the issue?
Author
Owner

@doctrinebot commented on GitHub (Apr 3, 2012):

Comment created by @ocramius:

Also, knowing the travis build url could help :)

@doctrinebot commented on GitHub (Apr 3, 2012): Comment created by @ocramius: Also, knowing the travis build url could help :)
Author
Owner

@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 (Apr 6, 2012): Comment created by ooflorent: Sorry about the long inactivity period... The travis build URL is http://travis-ci.org/#!/ooflorent/doctrine2
Author
Owner

@doctrinebot commented on GitHub (Jul 8, 2012):

Comment created by @ocramius:

I think this may be solved.in DBAL by putting a trim() at 1ca9db4f43/lib/Doctrine/DBAL/Types/Type.php (L170)

@doctrinebot commented on GitHub (Jul 8, 2012): Comment created by @ocramius: I think this may be solved.in DBAL by putting a `trim()` at https://github.com/doctrine/dbal/blob/1ca9db4f437797c6bdc04a3a761d61e24150e20b/lib/Doctrine/DBAL/Types/Type.php#L170
Author
Owner

@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) === false before that call to Doctrine\DBAL\Types\Type::getType() it doesn't cause the fatal.

@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) === false` before that call to `Doctrine\DBAL\Types\Type::getType()` it doesn't cause the fatal.
Author
Owner

@doctrinebot commented on GitHub (Jul 11, 2012):

Issue was closed with resolution "Cannot Reproduce"

@doctrinebot commented on GitHub (Jul 11, 2012): Issue was closed with resolution "Cannot Reproduce"
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: doctrine/archived-orm#2071