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

Error when running a shell script that outputs something and accesses session #3704

Open
tobihille opened this issue Dec 18, 2023 · 0 comments
Labels

Comments

@tobihille
Copy link
Contributor

Preconditions (*)

  1. OpenMage 20.2.0
  2. Create a shell script that does an echo of something and then access the session (by accident)

Steps to reproduce (*)

  1. See precondition 2.

Expected result (*)

  1. Previous to PR Fixed PHP warnings when session backend exits before returning. #3109 everything worked

Actual result (*)

  1. The shell script breaks

Additional Hint

To circumvent the issue something like Mage::getSingleton('customer/session') could be added to \Mage_Shell_Abstract::__construct.
By nature shell scripts are not time constraint so an additional call to the session should not be too bad, on the other hand it fixes a behavioural change that was probably not intended.

@tobihille tobihille added the bug label Dec 18, 2023
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

1 participant