|   | php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login | 
| 
  [2016-01-07 06:14 UTC] joungkyun at yahoo dot com
 Description: ------------ This patch file is Support PHP 7 for ncurses extension Expected result: ---------------- none Actual result: -------------- none Patchesncurses-php7-support-again.patch (last revision 2016-09-22 13:04 UTC by joungkyun at yahoo dot com)ncurses-php7-support.patch (last revision 2016-01-07 06:14 UTC by joungkyun at yahoo dot com) Pull RequestsHistoryAllCommentsChangesGit/SVN commits             | |||||||||||||||||||||||||||||||||||||
|  Copyright © 2001-2025 The PHP Group All rights reserved. | Last updated: Fri Oct 31 11:00:01 2025 UTC | 
If you use a character pointer in zend_parse_parameters function, you will meet segfault. --- char *text; int text_len; if (zend_parse_parameters(ZEND_NUM_ARGS(),"rlls",&handle,&y,&x,&text,&text_len) == FAILURE) { return; } FETCH_WINRES(w,handle); RETURN_LONG(mvwaddstr(*w,y,x,text)); --- This issue seems to PHP bug. To correct this problem, you must modify the code as follows. --- zend_string *text; if (zend_parse_parameters(ZEND_NUM_ARGS(),"rllS",&handle,&y,&x,&text) == FAILURE) { return; } FETCH_WINRES(w,handle); RETURN_LONG(mvwaddstr(*w,y,x,ZSTR_VAL(text))); --- So, I report new patch "ncurses-php7-support-again.patch"