Hello,
I am trying to start a small php ncurses app but the documenatation is not helping.
What does the following mean:
PHP 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 ncurses_getmaxyx(). 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 /home/michael/gsmenu/gsmenu on line 10
Here is my code:
#!/usr/local/bin/php <?php
$y=0; $x=0;
$ncurses_session = ncurses_init(); $main = ncurses_newwin(0,0,0,0); ncurses_getmaxyx (&$main,$y,$x ); ncurses_border(1,1,1,1, 1,1,1,1); ncurses_wrefresh($main); ncurses_end();
?>
If I remove the "&" from main nothing happens at all, the php documentation says that the variables should be passed from reference.
Any help would be appreciated.
Michael.
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php