Menu

#1 Workaround for Stack->pop()

open
nobody
None
5
2003-08-04
2003-08-04
No

If Stack->pop() is executed by recent versions of PHP
then the following fatal error occurs:

"Only variables can be passed by reference".

Splitting the nested statement in Stack->pop() results
in normal method execution.

Discussion

  • Bas Cancrinus

    Bas Cancrinus - 2003-08-05

    Diff file for phrame/util/Stack.php

     
  • Bas Cancrinus

    Bas Cancrinus - 2003-08-05

    Logged In: YES
    user_id=437864

    I forgot to mention that this error only occurred when a
    session variable referenced a Stack instance and method
    invocations occurred through that variable (like
    $_SESSION['_ERRORS'] in the examples).

     

Log in to post a comment.