Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

0.10.12 broke "require" call while running in a phar archive and other concerns about "require" changing for a future Phalcon 3 LTS bugfix version. #1713

Closed
dschissler opened this issue Nov 11, 2018 · 13 comments
Assignees
Labels

Comments

@dschissler
Copy link

dschissler commented Nov 11, 2018

@sergeyklay

My VM is a standard Ubuntu 18.04, PHP 7.2, latest zephir parser extension, latest Phalcon 3 LTS.

I see that 0.10.12 advertised as initial PHP 7.3 support. Something changed between 0.10.11 and 0.10.12 that breaks the "phar://" protocol from working correctly when called from zephir code that is run in [initiated from] a phar. I've tested it twice now after switching back and forth, deleting the extension cache directories each time.

I know that the behavior of Zephir require has never worked the same/correctly in PHP 7 as it did in PHP 5, but whatever you did to to improve this has now broken phar use within zephir.

I'm concerned that also the behavior of the require has changed for the stable branch of Phalcon 3, because it never worked correctly and if you have now fixed it in Zephir then there could be different behavior for someone's Phalcon 3 setup (even if now possibly correct and broken before). I see that a new Phalcon 3 has not yet been released, so that is a good thing IMO.

I encourage you to set aside the 0.10.11 zephir branch as possibly (not certainly) the zephir version that is most compatible with how things have been done. I don't believe that it was correct to have made whatever changes you made on a "bugfix" version of zephir but to have instead created the 0.11.0.

I believe that considering how broken the require has been for the entire life of Phalcon 3 that even fixing it at the very end of its support is the incorrect thing to do, since it changes behavior.

@dschissler

This comment was marked as abuse.

@dschissler

This comment was marked as abuse.

@sergeyklay sergeyklay self-assigned this Nov 11, 2018
@dschissler

This comment was marked as abuse.

@dschissler

This comment was marked as abuse.

@sergeyklay
Copy link
Member

This issue has been around for about two years. All us well know (and long ago) about it. @AlexNDRmac and I are involved in solving this bug.

@sergeyklay
Copy link
Member

@dschissler Could you please provide code to reproduce? I need the code that did work previously. Also please provide exact worked Zephir version.

@dschissler

This comment was marked as abuse.

@sergeyklay
Copy link
Member

I'll try to figure it out, but if just require phar:///tmp/1.phar is not enough I can't fix it without a code to reproduce. And I strongly doubt that this issue and #1621 are different problems.

@dschissler

This comment was marked as abuse.

@sergeyklay
Copy link
Member

@dschissler Do you need a patch for the 0.10.x branch or the 0.11.x is satisfied your needs?

@dschissler

This comment was marked as abuse.

@dschissler

This comment was marked as abuse.

@sergeyklay
Copy link
Member

@dschissler

The "--backend" option does not exist.

It is the bug. Open please an issue. I'll fix it asap.

It would be really nice if zephir could only use sudo on the specific necessary commands like most projects.

I constantly forget about the sudo... Please open a new issue so that I do not forget about it. I'll try to deal with this in the near future

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants