ID: 13110
Updated by: sander
Reported By: [EMAIL PROTECTED]
Old Status: Feedback
Status: Closed
Bug Type: Scripting Engine problem
Operating System: Solaris8
PHP Version: 4.0.6
New Comment:

No feedback. Closing.

Previous Comments:
------------------------------------------------------------------------

[2001-10-21 00:48:33] [EMAIL PROTECTED]

Please include a _short_ and _complete_ script that can just
be cut'n'pasted and which shows the problem.


------------------------------------------------------------------------

[2001-09-03 11:29:07] [EMAIL PROTECTED]

for ($rub=0; $rub<$nb_news; $rub++)
    {
        
        // dans le cas ou cette rubrique est selectionnee
        if 
(isset($tab_attributs["id_liste_newletterthemes_".$themes[$rub]["id_themes"]]) and 
$tab_attributs["id_liste_newletterthemes_".$themes[$rub]["id_themes"]] != "")
            $check = "CHECKED";
        else
            $check = "";

        $liste_elem = 
GetListElements($tab_attributs["id_liste_newletterthemes_".$themes[$rub]["id_themes"]]);

        debug(sizeof($liste_elem));
        for ($i=0; $i<sizeof($liste_elem); $i++)
        {
                if ($i==0)
                        $elemrub = $liste_elem[$i]["value"];
                else
                        $elemrub .= ",".$liste_elem[$i]["value"];
        }

        $tmpl->set_var( array("ID_THEME"       => $themes[$rub]["id_themes"],
                              "NUM_RUB"        => $rub,
                              "LISTE_RUB"      => $elemrub,
                              "ACCROCHE_THEME" => 
afficherTexte($tab_attributs["accrochethemes_".$themes[$rub]["id_themes"]]),
                              "THEME_CHECKED"  => $check,
                              "THEME_NAME"     => 
afficherTexte($themes[$rub]["name"])) );
        $tmpl->parse("rubriques", "rub", true);
    }

if in this loop the number of element is $nb_news = 1.
here 20,1,138 before enter loop an Bus error or a segmentation fault is generate in 
Apache log under Solaris8



------------------------------------------------------------------------



Edit this bug report at http://bugs.php.net/?id=13110&edit=1


-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to