Akelos Framework v1 forum archive. This forum is no longer maintained. To report bugs please visit https://github.com/akelos/akelos/issues
    • CommentAuthorfelipex
     
    Hi!

    I am new in Akelos (it seems to be a excellent tool), but when I was starting the follow error appered:

    Warning: Call-time pass-by-reference has been deprecated - argument passed by value; If you would like to pass it by reference, modify the declaration of [runtime function name](). If you would like to enable call-time pass-by-reference, you can set allow_call_time_pass_reference to true in your INI file. However, future versions may not support this any longer. in C:\Arquivos de programas\Apache Software Foundation\Apache2.2\htdocs\akelos\lib\AkObject.php on line 66

    I know I can solve this changing the line
    allow_call_time_pass_reference = Off
    in php.ini file.

    But I was worried about one setence:
    "However, future versions may not support this any longer."

    Is anyone worried about this too?

    Bye
    •  
      CommentAuthorbermi
     

    Hi Felipe and welcome to the Akelos community.

    We need to implicitly assign objects using an ampersand to avoid duplicating objects on PHP4.

    If PHP5 raises a non-notice error in the future we will need to start a PHP5-only branch, but I prefer to keep a PHP4/PHP5 branch and the start a PHP6-only one with native unicode support and other goodies.

    • CommentAuthorfelipex
     
    OK bermi!

    The answer is satisfactory to me, so I have very interst to use Akelos in my next project.
    Good luck for me!
    Good luck for us!
    • CommentAuthorconradwt
     
    Hi, the php.ini directive, allow_call_time_pass_reference, doesn't exist in PHP >= 5.0.0. Thus, there isn't a way to set this value to Off unless you're using PHP <= 4.0.0. Please take a look at the following reference:

    http://us3.php.net/manual/en/ini.core.php

    Thus, my option now is to correct all of these warning messages within the PHP file(s). I'll try to spend sometime this weekend to correct
    these PHP files and move on from there.

    -Conrad
    • CommentAuthorKaste
     

    actually you can set

    allow_call_time_pass_reference = On
    

    in your php.ini. as of now it has been deprecated and "is likely to be unsupported in future versions of PHP/Zend."