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

Strange behaviour of callbacks array_map, call_user_func_array #788

Closed
rimuln opened this issue Jan 18, 2018 · 1 comment
Closed

Strange behaviour of callbacks array_map, call_user_func_array #788

rimuln opened this issue Jan 18, 2018 · 1 comment

Comments

@rimuln
Copy link

rimuln commented Jan 18, 2018

Not sure if this is right place.

At one hosting is installed this version of PHP:

PHP Version 5.6.33-1+ubuntu16.04.1+deb.sury.org+1
When I tried deploy Nette Application to this server I got errors. After analyzing it looks for me that it is probably bug in the PHP. On windows 5.6.33 x64-vc11-ts it works as expected. on another hosting with 5.5.38 it works too.
I'm trying to solve it with hosting, but there is horrible technical support:( They said that have the newest version of PHP and nobody reports error till now.

Test contains 4 examples.

  1. use array_map to call class_exists -> this failed I expect same/similar output as in 2nd example
  2. direct use of class_exists -> this works
  3. direct usage of preg_replace_callback - this works
    4 use call_user_func_array to call preg_replace_callback - again failed I expect same/similar results as in 3rd example

failed runs on mentioned hosting
lezeni-test-banan-updated2

reference run on different platform
lezeni-test-localhost-updated2
lezeni-test-pipni-updated2

source code of test
test.php.txt

zip contains phpinfo from hosting and localhost and original exceptions from Tracy\Debbuger
bug-php5.6.zip

I would know if it is some configuration problem of hosting or PHP orbug in libraries or something other

@oerdnj
Copy link
Owner

oerdnj commented Jan 18, 2018

This doesn't seem like anything closely related to the bug in packaging. You'll need to report this to upstream bug tracker: https://bugs.php.net/how-to-report.php

@oerdnj oerdnj closed this as completed Jan 18, 2018
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

No branches or pull requests

2 participants