|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2013-06-08 18:51 UTC] recibe_distraction at hotmail dot com
-Summary: Segmentation Fault
+Summary: Segmentation Fault @ newt_checkbox_tree_add_item
[2013-06-08 18:51 UTC] recibe_distraction at hotmail dot com
[2013-08-23 21:45 UTC] a at b dot com
[2013-10-13 15:37 UTC] remi@php.net
[2013-10-13 15:39 UTC] remi@php.net
[2013-10-14 12:42 UTC] michael@php.net
-Status: Open
+Status: Closed
-Assigned To:
+Assigned To: michael
[2013-10-14 12:42 UTC] michael@php.net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Tue Oct 28 02:00:01 2025 UTC |
Description: ------------ I like this newt library, although its not documented and no one appears to use it. Would like to use it. But then again, I'd like a lot of things. Test script: --------------- <?php newt_init (); newt_cls (); $rows = 70; $cols = 25; newt_open_window ($rows/2-17, $cols/2-10, 34, 17, "Don't be a Tool"); $form = newt_form (); //CHECK BOX TREE $checkbox = newt_checkbox_tree(3, 2, 20,NEWT_CHECKBOXTREE_EXPANDED); $arr = array( "Authentication configuration", "Firewall configuration", "Mouse configuration", "Network configuration", "Printer configuration", "System services"); foreach($arr as $key=>$l_item); { newt_checkbox_tree_add_item($checkbox, $l_item,'',NEWT_CHECKBOXTREE_UNSELECTED,$key); } exit; newt_form_add_component ($form, $checkbox); newt_refresh (); $b1 = newt_button (5, 12, "Run Tool"); $b2 = newt_button (21, 12, "Quit"); newt_form_add_components ($form, array($b1, $b2)); newt_refresh (); newt_run_form ($form); newt_pop_window (); newt_pop_help_line (); newt_finished (); newt_form_destroy ($form); Expected result: ---------------- Expect script to render checkbox_tree via continuing with the following code: Actual result: -------------- Throws a segmentation fault prior to exit.