Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Recent composer.json update of stdlib package #3705

Closed
BorisMorel opened this Issue · 8 comments

4 participants

@BorisMorel

Hi,
It's about https://github.com/zendframework/zf2/blob/release-2.1.1/library/Zend/Stdlib/composer.json

Your recent adding on the composer.json file

"files": [
    "compatibility/autoload.php"
]

break the composer update when you using Zend parts on a another project with its own autoload file.

Thanks,
Boris.

@weierophinney
@BorisMorel

I can.

My setup isn't very interresting for this bug. I use Symfony for global project with composer autoloader.
I need to use zendPdf library into this project. ZendPdf require zend-stdlib and zend-memory.

I think that the bug is :
In the generated autoload file by composer ( autoload_real ), i found this line ( where $vendorDir = 'vendor' ):

require $vendorDir . '/zendframework/zend-stdlib/compatibility/autoload.php';

But the real path of the file is:
vendor/zendframework/zend-stdlib/Zend/Stdlib/compatibility/autoload.php

So the two paths aren't the same.
Maybe it's composer bug ??

Thanks,
Boris.

@weierophinney weierophinney referenced this issue from a commit in weierophinney/zf2
@weierophinney weierophinney [#3705] Fix autoload.files setting in composer.json
- Because we have a target-dir, the autoload.files path needed to be prefixed
  with that target-dir to continue to be valid.
1edd594
@weierophinney

Found the issue -- we have a "target-dir" specification in the composer.json; the directive needed to be prepended with that same value.

@weierophinney weierophinney was assigned
@weierophinney weierophinney referenced this issue from a commit in weierophinney/zf2
@weierophinney weierophinney [#3705] Similar fix for Zend\Session
- ensure autoload.files is prepended with value of target-dir.
6beaf8c
@BorisMorel

Thanks I close this issue.

@BorisMorel BorisMorel closed this
@sstok

Still keep getting this error, removed the Composer cache, the zendframework folder.
It seems the packages mirror is outdated or something.

@weierophinney

@sstok You need to use a development version of the packages to get the fix; the fix is not yet released.

@sstok

My minimum-stability is dev so it should be picked up. Or does the http://packages.zendframework.com/ only contain stable releases??

@hinikato

Due that the Composer packages don't work in the 2.1.1 version. However I have discovered that the 'dev-master' version can be used instead (from packagist).

@thewilkybarkid thewilkybarkid referenced this issue from a commit in misd-service-development/php-highcharts
@thewilkybarkid thewilkybarkid Use stable version of zend-json now that zendframework/zf2#3705 is fixed c76d2eb
@ghost Unknown referenced this issue from a commit
@weierophinney weierophinney [#3705] Fix autoload.files setting in composer.json
- Because we have a target-dir, the autoload.files path needed to be prefixed
  with that target-dir to continue to be valid.
1edb16a
@ghost Unknown referenced this issue from a commit
@weierophinney weierophinney [#3705] Similar fix for Zend\Session
- ensure autoload.files is prepended with value of target-dir.
0cb5b94
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.