Skip to content
This repository has been archived by the owner on Mar 3, 2022. It is now read-only.

Does not work in Windows. It restarts Apache when ray function is called. #3

Open
atiqsamtia opened this issue Apr 7, 2021 · 6 comments

Comments

@atiqsamtia
Copy link

I used this path for prepend in Windows.

auto_prepend_file=C:\Users/Atiq/AppData/Roaming/Composer/vendor/cuyz/global-ray/prepend_ray.php

the path is correct and any PHP file works file except the one which has any ray() function call.

@romm
Copy link
Member

romm commented Apr 7, 2021

Hi @atiqsamtia,

Unfortunately I don't have any Windows environment to test this package out at the moment. I'm not sure this would be an issue but did you try to replace slashes / with backslashes \ in the configuration path?

Could you also dump a phpinfo() in your script and see if the auto_prepend_file configuration is filled correctly?

@atiqsamtia
Copy link
Author

Hi @romm

Sorry I'm off to bed. I'll share more details in the morning.

The issue occurs only when Ray function is called. It just restarts the apache in a loop. Weired behavior.

@atiqsamtia
Copy link
Author

Tested with both / and \\

confirmed in phpinfo() as well prepend file is there.

image

I'm not sure why is it happening. It keeps restarting my XAMPP and I can see my ports getting free and then assigned again.

@romm
Copy link
Member

romm commented Apr 8, 2021

Strange issue indeed. Could you try to add a die statement juste before require_once here to check if the file is even loaded?

require_once $globalRayAutoloader;

@atiqsamtia
Copy link
Author

Yes it does load the file and I can see the output of die('hi');

@romm
Copy link
Member

romm commented Apr 10, 2021

Hi @atiqsamtia, I honestly have no idea what could possibly go wrong. I also don't have access to a Windows machine to try it out by my side at the moment, so it will be hard for me to help you solving this issue.

Sorry for the inconvenience, if you find anything related to this issue, please consider keeping us updated here.

Have a good day. 😉

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

No branches or pull requests

2 participants