ID: 21144 Updated by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] -Status: Assigned +Status: Closed Bug Type: Unknown/Other Function Operating System: Linux - Debian Woody PHP Version: 4CVS-2002-12-22 (stable) Assigned To: iliaa New Comment:
This bug has been fixed in CVS. In case this was a PHP problem, snapshots of the sources are packaged every three hours; this change will be in the next snapshot. You can grab the snapshot at http://snaps.php.net/. In case this was a documentation problem, the fix will show up soon at http://www.php.net/manual/. In case this was a PHP.net website problem, the change will show up on the PHP.net site and on the mirror sites in short time. Thank you for the report, and for helping us make PHP better. Previous Comments: ------------------------------------------------------------------------ [2002-12-22 13:13:55] [EMAIL PROTECTED] The bug still exists and the applied fix is not correct. I am working on a patch to fully address the problem. The committed fix only fixes the problem for a single function, a dosen other ncurses functions can and will result in the segv. ------------------------------------------------------------------------ [2002-12-22 13:11:37] [EMAIL PROTECTED] This bug has been fixed in CVS. In case this was a PHP problem, snapshots of the sources are packaged every three hours; this change will be in the next snapshot. You can grab the snapshot at http://snaps.php.net/. In case this was a documentation problem, the fix will show up soon at http://www.php.net/manual/. In case this was a PHP.net website problem, the change will show up on the PHP.net site and on the mirror sites in short time. Thank you for the report, and for helping us make PHP better. ------------------------------------------------------------------------ [2002-12-22 11:59:46] [EMAIL PROTECTED] <?php ncurses_init(); ncurses_start_color(); ?> That will work properly. <?php ncurses_start_color(); ?> This will cause PHP to segfault with no messages. './configure' '--enable-bcmath' '--enable-pcntl' '--enable-sysvsem' '--enable-sysvshm' '--enable-sysvmsg' '--enable-tokenizer' '--with-pear' '--with-curl' '--with-mysql' '--with-gettext' '--with-mcrypt' '--with-mhash' '--with-ming' '--with-ncurses=/root/ncurses-5.3' '--with-shmop' '--enable-sockets' This bug has been tested with the default Ncurses and Ncurses 5.3 with the same results. This bug occurs in ncurses_start_color() and ncurses_standout(). It is assumed that it occurs in more functions, but that is not verified. Following is a gdb backtrace: #0 0x0814daf9 in start_color () #1 0x0809658f in zif_ncurses_start_color (ht=0, return_value=0x820b864, this_ptr=0x0, return_value_used=0) at /root/php4-STABLE-200212220230/ext/ncurses/ncurses_functions.c:318 #2 0x081434ca in execute (op_array=0x820b964) at /root/php4-STABLE-200212220230/Zend/zend_execute.c:1598 #3 0x08134238 in zend_execute_scripts (type=8, retval=0x0, file_count=3) at /root/php4-STABLE-200212220230/Zend/zend.c:864 #4 0x081124ff in php_execute_script (primary_file=0xbffff9e4) at /root/php4-STABLE-200212220230/main/main.c:1573 #5 0x0814a4e3 in main (argc=3, argv=0xbffffa54) at /root/php4-STABLE-200212220230/sapi/cgi/cgi_main.c:1417 ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=21144&edit=1