Skip to content
This repository has been archived by the owner on Jan 8, 2020. It is now read-only.

Fixed the classmap autoloader to work under Windows in Phar files. #5813

Closed
wants to merge 1 commit into from

Conversation

slaff
Copy link

@slaff slaff commented Feb 11, 2014

The following change makes it possible to use the classmap autoloader also under Windows in phar context.
(Example path: 'phar://D:/GDrive/zs-client.phar/module/Client/autoload_classmap.php')

(Example path: 'phar://D:/GDrive/zs-client.phar/module/Client/autoload_classmap.php')
@ezimuel
Copy link
Contributor

ezimuel commented Feb 11, 2014

@slaff can you provide a unit test to cover this use case? Thanks.

@slaff
Copy link
Author

slaff commented Feb 11, 2014

@ezimuel There is already test case for this that before this patch was failing under Windows. The name of the test is testCanLoadClassMapFromPhar and is here: https://github.com/zendframework/zf2/blob/master/tests/ZendTest/Loader/ClassMapAutoloaderTest.php#L168

@ezimuel ezimuel self-assigned this Feb 11, 2014
@ezimuel ezimuel added this to the 2.2.6 milestone Feb 11, 2014
@ezimuel
Copy link
Contributor

ezimuel commented Feb 11, 2014

Merged with commit @6f2d37956f

@ezimuel ezimuel closed this Feb 11, 2014
weierophinney added a commit that referenced this pull request Feb 11, 2014
Fixed the classmap autoloader to work under Windows in Phar files.
weierophinney added a commit that referenced this pull request Feb 11, 2014
Forward port #5813

Conflicts:
	library/Zend/Code/Reflection/FunctionReflection.php
	library/Zend/Code/Reflection/MethodReflection.php
	tests/ZendTest/Code/Reflection/FunctionReflectionTest.php
@weierophinney
Copy link
Member

Merged to develop as well with 4d8a7eb

@weierophinney weierophinney modified the milestone: 2.2.6 Feb 11, 2014
weierophinney added a commit to zendframework/zend-loader that referenced this pull request May 15, 2015
Forward port zendframework/zendframework#5813

Conflicts:
	library/Zend/Code/Reflection/FunctionReflection.php
	library/Zend/Code/Reflection/MethodReflection.php
	tests/ZendTest/Code/Reflection/FunctionReflectionTest.php
# for free to subscribe to this conversation on GitHub. Already have an account? #.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants