Skip to content

Conversation

@nikic
Copy link
Member

@nikic nikic commented Aug 18, 2016

Change zend_call_function() to not abort the call if a non-reference
is passed to a reference argument. The usual warning will still be
thrown, but the call will proceed as usual.

Change zend_call_function() to not abort the call if a non-reference
is passed to a reference argument. The usual warning will still be
thrown, but the call will proceed as usual.
$a->setStub('<?php
try {
Phar::webPhar("test.phar", "/index.php", null, array(), "sort");
Phar::webPhar("test.phar", "/index.php", null, array(), function() { throw new Exception; });
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why did you have to change PHAR tests?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

They were testing calls where zend_is_callable succeeds, but zend_call_function fails. There's no good way to test this anymore, so I switched to throwing an exception -- it's not quite the same, but similar.

@dstogov
Copy link
Member

dstogov commented Aug 19, 2016

@nikic @bwoebi I think this is the right decision for PHP-7.1.

@dstogov
Copy link
Member

dstogov commented Aug 22, 2016

Please, commit this into PHP-7.1 and above.

@nikic
Copy link
Member Author

nikic commented Aug 22, 2016

I'm currently traveling, don't have a dev setup here. Can you please merge
it?

On Aug 22, 2016 08:59, "Dmitry Stogov" notifications@github.com wrote:

Please, commit this into PHP-7.1 and above.


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
#2088 (comment), or mute
the thread
https://github.com/notifications/unsubscribe-auth/AANMELlMRKZnAf2hTirZRQywsp2qSXYHks5qiUjQgaJpZM4Jn_XB
.

@nikic
Copy link
Member Author

nikic commented Aug 30, 2016

Has been merged as 906456c.

@nikic nikic closed this Aug 30, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants