1
0
Fork 0
mirror of synced 2025-04-01 20:36:14 +03:00
doctrine2/lib/Doctrine/ORM
Aljosha Papsch eb762dea23 XmlDriver: Avoid PHP bug #62577 by avoiding simplexml_load_file.
Doctrine is affected by PHP bug #62577. simplexml_load_file is not
able to load files if libxml_disable_entity_loader(true) has been
called. simplexml_load_file fails with the message:

I/O warning : failed to load external entity "/my/mappings/my_entity.dcm.xml"
in /path-to/lib/Doctrine/ORM/Mapping/Driver/XmlDriver.php on line 711

This error occurs even if there are no external entities in the XML file.

Waiting for the PHP bug to be resolved is infeasible, because it is
unresolved since years. Therefore Doctrine needs to circumvent the bug
by replacing simplexml_load_file with simplexml_load_string while getting
the file contents itself. simplexml_load_string is not affected by the
PHP bug.
2017-08-18 14:23:43 +02:00
..
Cache Merge pull request #6441 from sensorario/remove-loosely-comparison 2017-08-18 04:38:20 +02:00
Decorator make lock mode usage consistent 2014-02-05 15:13:53 +01:00
Event fix license header inconsistencies 2016-10-25 23:58:42 -03:00
Id #6167 #6168 - clarifying on the reasoning why query is used instead of fetchColumn 2017-06-21 05:44:58 +02:00
Internal #6623 minor code cleanups (removing useless assignments, array callback syntax) 2017-08-16 15:10:27 +02:00
Mapping XmlDriver: Avoid PHP bug #62577 by avoiding simplexml_load_file. 2017-08-18 14:23:43 +02:00
Persisters Move identifier types extraction to a method 2017-07-22 22:39:47 +02:00
Proxy #6626 #6625 minor CS fixes (removed useless assignments) 2017-08-16 15:23:20 +02:00
Query Merge pull request #6579 from Nek-/patch-1 2017-08-18 04:33:04 +02:00
Repository Use short-array syntax on "lib" directory 2016-12-08 00:31:12 +01:00
Tools #6593 #5864 removing incorrect null return value in API marked as string 2017-08-16 19:57:26 +02:00
Utility Use short-array syntax on "lib" directory 2016-12-08 00:31:12 +01:00
AbstractQuery.php minor code work: 2017-06-08 22:04:07 +02:00
Cache.php DDC-3078 - constructor should never be interfaced 2014-04-17 15:16:56 -04:00
Configuration.php Remove @throws in Configuration where necessary. 2017-06-20 07:27:25 +02:00
EntityManager.php minor code work: 2017-06-08 22:04:07 +02:00
EntityManagerInterface.php fix license header inconsistencies 2016-10-25 23:58:42 -03:00
EntityNotFoundException.php Use short-array syntax on "lib" directory 2016-12-08 00:31:12 +01:00
EntityRepository.php Use short-array syntax on "lib" directory 2016-12-08 00:31:12 +01:00
Events.php #385 #1181 DDC-3385 - fixing Events docblocks as per @deeky666's review 2015-01-13 21:15:34 +01:00
LazyCriteriaCollection.php Fixed many small phpcs issues 2015-12-11 20:30:41 +01:00
NativeQuery.php Use short-array syntax on "lib" directory 2016-12-08 00:31:12 +01:00
NonUniqueResultException.php Add message to NonUniqueResultException 2017-08-06 12:07:47 +02:00
NoResultException.php Fixed missed documentation issues in Doctrine\ORM 2012-12-14 20:12:56 +00:00
OptimisticLockException.php Fixed many small phpcs issues 2015-12-11 20:30:41 +01:00
ORMException.php No longer treat aggregate functions as a special case. 2017-06-20 07:27:24 +02:00
ORMInvalidArgumentException.php Fix double spacing in exception's message 2017-08-03 11:52:06 +01:00
PersistentCollection.php #6613 #6614 #6616 adding void return type 2017-08-11 21:27:09 +02:00
PessimisticLockException.php Fix some LGPL occurances to MIT 2013-10-02 12:07:37 +02:00
Query.php minor code work: 2017-06-08 22:04:07 +02:00
QueryBuilder.php Update QueryBuilder.php 2017-05-23 18:42:01 +02:00
TransactionRequiredException.php Fix some LGPL occurances to MIT 2013-10-02 12:07:37 +02:00
UnexpectedResultException.php Fixed unused 'use' statements. 2012-12-13 18:19:21 +00:00
UnitOfWork.php #5579 completely removing a changeset when cleaning up 2017-08-18 09:27:47 +02:00
Version.php Bumping version to 2.6.0-DEV 2015-04-02 21:42:47 +01:00