From: andrewdk at comcast dot net Operating system: Gentoo Linux PHP version: 5.0.0RC2 PHP Bug Type: Unknown/Other Function Bug description: ncurses_mvwaddstr() doesn't add text into correct window
Description: ------------ Using PHP CLI 5.0.0RC2 Ncurses 5.4 --with-ncurses When using ncurses_mvwaddstr(), the text to be added does not appear in the ncurses window specified, but appears in the top-left corner of the terminal window. Neither of the y,x coordinates change where the text goes. This source example is derived from the Zend ncurses tutorial. Reproduce code: --------------- <?php define("ESCAPE_KEY",27); $ncurse = ncurses_init(); $small = ncurses_newwin(10,30,7,25); while(1){ ncurses_wborder($small,0,0, 0,0, 0,0, 0,0); ncurses_wrefresh($small); $pressed = ncurses_getch(); If($pressed == ESCAPE_KEY){ ncurses_end(); exit; }else{ ncurses_mvwaddstr($small,2,2,$pressed); } } ?> Expected result: ---------------- This is expected to add the character number to the "$small" window at coordinates 2,2; and exit when ESC is pressed. Actual result: -------------- The charatcer is not inserted into the "$small" window at coords 2,2; but onto the terminal at 0,0. ESC works as expected (however there is a half-second delay from pressing it to the program exiting.) -- Edit bug report at http://bugs.php.net/?id=28426&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=28426&r=trysnapshot4 Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=28426&r=trysnapshot5 Fixed in CVS: http://bugs.php.net/fix.php?id=28426&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=28426&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=28426&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=28426&r=needscript Try newer version: http://bugs.php.net/fix.php?id=28426&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=28426&r=support Expected behavior: http://bugs.php.net/fix.php?id=28426&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=28426&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=28426&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=28426&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=28426&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=28426&r=dst IIS Stability: http://bugs.php.net/fix.php?id=28426&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=28426&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=28426&r=float