|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2016-09-29 09:13 UTC] philippwrann at gmail dot com
[2016-09-29 09:35 UTC] requinix@php.net
-Status: Open
+Status: Wont fix
[2016-09-29 09:35 UTC] requinix@php.net
[2016-09-29 09:59 UTC] philippwrann at gmail dot com
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Nov 12 01:00:02 2025 UTC |
Description: ------------ At the moment it is not possible to implement dependency managers that can handle different versions of the same package. If the callee (file location) would be provided as second parameter for autoload callbacks a autoloading implementation could determine the correct version to load. Some real world example: You start a new composer based project and require some third party package. That package requires another package, for example some api. So long all is good Now you require one more package, that requires the same package but in another version => not possible. A fix would be downwards compatible because the additional parameter would simply be ignored by current implementations. Test script: --------------- // something like this spl_autoload_register(function($className, $originPath){ get_real_autoloader($originPath)->load($className); });