Bug #17510 Updated: PHP module crash

From: Date: Wed, 29 May 2002 17:02:43 +0000
Subject: Bug #17510 Updated: PHP module crash
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-8855@lists.php.net to get a copy of this message
ID: 17510 Updated by: yohgaki@php.net Reported By: marc.tibi@syntegra.fr Status: Bogus Bug Type: Reproducible crash Operating System: Linux PHP Version: 4.0CVS-2002-05-29 New Comment: Please read instruction also.... Previous Comments: ------------------------------------------------------------------------ [2002-05-29 13:01:45] yohgaki@php.net Thank you for taking the time to report a problem with PHP. Unfortunately your version of PHP is too old -- the problem might already be fixed. Please download a new PHP version from http://www.php.net/downloads.php If you are able to reproduce the bug with one of the latest versions of PHP, please change the PHP version on this bug report to the version you tested and change the status back to "Open". Again, thank you for your continued support of PHP. ------------------------------------------------------------------------ [2002-05-29 11:59:50] marc.tibi@syntegra.fr PHP module 4.1.1 crash with message : [Tue May 28 16:14:58 2002] [notice] child pid 11919 exit signal Segmentation fault (11) It's working in 4.0.4pl1 ( with 1.3.12 Apache) , not with 4.1.1 ( with 1.3.22 apache) The page code is : <?php //session_name($SID); session_start(); ini_alter("session.use_cookies","0"); if(!isset($rep)) { $tempbody="onLoad=\"confirmrep()\""; } else { $tempbody=""; } if($new==1) { session_unregister("ppaysliv"); unset($ppaysliv); session_unregister("pctrliv"); unset($pctrliv); session_unregister("pmliv"); unset($pmliv); session_unregister("pjliv"); unset($pjliv); session_unregister("ppaysres"); unset($ppaysres); session_unregister("pctrres"); unset($pctrres); session_unregister("pmres"); unset($pmres); session_unregister("pjres"); unset($pjres); session_unregister("pimgMod"); unset($pimgMod); session_unregister("plname"); unset($plname); session_unregister("pfname"); unset($pfname); session_unregister("padress1"); unset($padress1); session_unregister("padress2"); unset($padress2); session_unregister("pcity"); unset($pcity); session_unregister("ppayscli"); unset($ppayscli); session_unregister("pprovince"); unset($pprovince); session_unregister("pstate"); unset($pstate); session_unregister("pzipcode1"); unset($pzipcode1); session_unregister("pzipcode2"); unset($pzipcode2); session_unregister("pphone1"); unset($pphone1); session_unregister("pphone2"); unset($pphone2); session_unregister("pfax1"); unset($pfax1); session_unregister("pfax2"); unset($pfax2); session_unregister("pmail"); unset($pmail); session_unregister("phr_arr"); unset($phr_arr); session_unregister("phr_ret"); unset($phr_ret); session_unregister("ptxt_res"); unset($ptxt_res); session_unregister("pnac"); session_unregister("mod"); unset($mod); //******* session_unregister("ver"); unset($ver); //******* } if($new==2) { session_unregister("ppaysliv"); unset($ppaysliv); session_unregister("pctrliv"); unset($pctrliv); session_unregister("pmliv"); unset($pmliv); session_unregister("pjliv"); unset($pjliv); session_unregister("ppaysres"); unset($ppaysres); session_unregister("pctrres"); unset($pctrres); session_unregister("pmres"); unset($pmres); session_unregister("pjres"); unset($pjres); session_unregister("pimgMod"); unset($pimgMod); session_unregister("plname"); unset($plname); session_unregister("pfname"); unset($pfname); session_unregister("padress1"); unset($padress1); session_unregister("padress2"); unset($padress2); session_unregister("pcity"); unset($pcity); session_unregister("ppayscli"); unset($ppayscli); session_unregister("pprovince"); unset($pprovince); session_unregister("pstate"); unset($pstate); session_unregister("pzipcode1"); unset($pzipcode1); session_unregister("pzipcode2"); unset($pzipcode2); session_unregister("pphone1"); unset($pphone1); session_unregister("pphone2"); unset($pphone2); session_unregister("pfax1"); unset($pfax1); session_unregister("pfax2"); unset($pfax2); session_unregister("pmail"); unset($pmail); session_unregister("phr_arr"); unset($phr_arr); session_unregister("phr_ret"); unset($phr_ret); session_unregister("ptxt_res"); unset($ptxt_res); session_unregister("pnac"); } session_register("ppaysliv"); include("../../connect.inc.php"); include("../lang.inc.php"); //Mise en session du pays et devise et options commerciale du repr&#233;sentant session_register("pays"); session_register("codDev"); session_register("optCom"); $query="SELECT p.id_pays, r.cod_dev, r.opt_com FROM pays p, representant r where r.id_pays = p.id_pays and r.id_rept=$rep"; $stmt = @OCIParse($conn, $query); $exec_result = @OCIExecute($stmt,OCI_COMMIT_ON_SUCCESS); if(!$exec_result) { //echo OCIerror($stmt); } while (@OCIFetchInto($stmt,$data,OCI_ASSOC)) { $optCom = trim($data['OPT_COM']); $pays = trim($data['ID_PAYS']); $codDev = trim($data['COD_DEV']); } //Si pas de r&#233;servation en ligne pour le repr&#233;sentant, redirection vers contacts if($optCom==1) { header("location:contact.php"); } //Mise &#224; jour des vars de session avec les selected.index des combos if($bkpaysliv==1) { $ppaysliv=$valpaysliv; } $timesys=time(); //Temps système $timecourant=mktime(0,0,0,date("m",$timesys), date("d",$timesys), date("Y",$timesys)); $time20=mktime(0,0,0,date("m",$timecourant), date("d",$timecourant), date("Y",$timecourant))+20*3600*24; //Temps système + Delai de livraison en jours //initialisation si les vars de session n'existent pas ou si bouton reset du formulaire if(!isset($ppaysliv)) { $ppaysliv=0; } if(!isset($pctrliv)) { $pctrliv=0; } if(!isset($pmliv)) { $pmliv=$time20; } if(!isset($pjliv)) { $pjliv=date("d",$time20); } ?> <html> <! Renault Eurodrive - Location et leasing de voitures hors taxe &#224; prix r&#233;duit pour vos voyages en Europe > <! Renault Eurodrive - Location et leasing de voitures hors taxe &#224; prix r&#233;duit pour les r&#233;sidents &#233;trangers et les touristes voyageant en Europe > <head> <title> Renault Eurodrive - Location de voitures hors taxe pour vos voyages en Europe </title> <meta NAME="keywords" content=" Location de voitures, Location de voitures d&#233;tax&#233;e, Leasing de voitures, Location-vente de voitures, Renault Eurodrive, Leasing de voitures Renault, Location de voitures r&#233;sidents &#233;trangers, R&#233;sidents &#233;trangers, Voyage en Europe, Billet Avion-Auto, Location de voitures, Location de voitures &#224; l'a&#233;roport, Location Voitures, Location Voitures en Europe, R&#233;servation de voitures, Location de voitures &#224; prix r&#233;duit"> <meta NAME="description" content=" Renault Eurodrive assure la location de v&#233;hicules &#224; prix r&#233;duits et hors taxe aux touristes non r&#233;sidents de l'UE et aux ressortissants de l'UE n'y r&#233;sidant pas. Tous nos v&#233;hicules sont entièrement &#233;quip&#233;s et lou&#233;s &#224; un prix r&#233;duit dans toute l'Europe. Les v&#233;hicules peuvent être lou&#233;s &#224; court ou &#224; long terme dans tous les principaux a&#233;roports Europ&#233;ens (Billet Avion-Auto) aux meilleurs prix et hors taxe pour voyager &#224; travers toute l'Europe."> <meta NAME="Robots" content="index,follow"> <meta NAME="Revisit-After" content="7 days"> <meta NAME="Author" content="webmaster.eurodrive@renault.com"> <meta NAME="GENERATOR" content=" Renault Eurodrive - Location et leasing de voitures hors taxe &#224; prix r&#233;duit pour vos voyages en Europe "> <meta NAME="Copyright" content="©1997-2001 www.eurodrive.renault.com"> <link rev="made" href="mailto:webmaster.eurodrive@renault.com"> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <link rel="stylesheet" href="../../style.css"> <script language="JavaScript"> function confirmrep() { if (confirm("Pour une information personnalisée, veuillez choisir votre pays de résidence sur la page d'accueil puis cliquez à nouveau sur la rubrique de votre choix : gamme, devis ou réservation.\n\nVoulez-vous y accéder maintenant ?")) { location.href="../../indexfr.php" ; } else { window.history.go(-1); } } function checkform(f) { var erreur; erreur=0; if ((erreur==0)&&(f.cmbpaysliv.options[f.cmbpaysliv.selectedIndex].value=="")) { alert("Vous devez choisir un pays de livraison !"); f.cmbpaysliv.focus(); erreur=1; } if ((erreur==0)&&(f.cmbctrliv.options[f.cmbctrliv.selectedIndex].value=="")) { alert("Vous devez choisir un centre de livraison !"); f.cmbctrliv.focus(); erreur=1; } if (erreur==0) { //document.form_reservation.submit(); f.submit(); } } function qstypobj(selObj, value_cmb, bk_cmb) { value_cmb_select = selObj.options[selObj.selectedIndex].value ; if ( value_cmb_select != "0" ) { location.href="default.php?"+value_cmb+"="+value_cmb_select+"&"+bk_cmb+"=1" ; } else { //alert("selectionnez un type d'objet !"); } } </script> <style type="text/css"> <!-- body { background-color: #ffffff; background-image: url(images/fond.jpg); background-repeat: no-repeat} --> </style> </head> <body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" bgcolor="#CCCCFF" <?php print("$tempbody"); ?>> <table width="100%" border="0" cellspacing="0" cellpadding="0" height="98%"> <tr valign="top"> <td width="350" nowrap height="5%">&nbsp; </td> <td width="100%" align="right" height="5%"> <table width="80" border="0" cellspacing="0" cellpadding="0"> <tr> <td align="right" nowrap height="50">&nbsp;</td> <td width="20">&nbsp;</td> </tr> <tr> <td align="right" nowrap height="30" class="menubas"> <?php menulang("reservation/default.php"); ?> </td> <td width="20">&nbsp;</td> </tr> </table> <table border="0" cellspacing="0" cellpadding="0" align="left" width="370"> <tr> <td width="65">&nbsp;</td> <td width="305"> <img src="images/tt.gif" width="300" height="38"></td> </tr> </table> </td> </tr> <tr valign="top"> <td align="left" valign="top" nowrap height="70%"> <table width="130" border="0" cellspacing="0" cellpadding="0" height="230"> <tr> <td class="menugauche" height="35">&nbsp;</td> <td class="menugauche" height="35">&nbsp;</td> </tr> <tr> <td class="menugauche" height="12" width="12">&nbsp;</td> <td class="menugauche" height="25" width="118"><a href="<?php print("../../indexfr.php"); ?>">Accueil</a></td> </tr> <tr> <td class="menugauche" height="12" width="12">&nbsp;</td> <td class="menugauche" height="25" width="118"><a href="../tax-free/default.php">Hors taxes</a></td> </tr> <tr> <td class="menugauche" height="12" width="12">&nbsp;</td> <td class="menugauche" height="25" width="118"><a href="../package/default.php">Formule</a></td> </tr> <tr> <td class="menugauche" height="12" width="12">&nbsp;</td> <td class="menugauche" height="25" width="118"><a href="../cars/default.php">Gamme</a></td> </tr> <?php if($pto!=1) { ?> <tr> <td class="menugauche" height="12" width="12">&nbsp;</td> <td class="menugauche" height="25" width="118"><a href="../rates/default.php?new=1">Devis</a></td> </tr> <tr> <td class="menugauche" height="12" width="12">&nbsp;</td> <td class="menugauche" height="25" width="118"><a href="default.php?new=1">R&#233;servation</a></td> </tr> <tr> <td class="menugauche" width="12">&nbsp;</td> <td class="menugauche" height="25" width="118" ><a href="../pick-up/default.php">Centres de livraison</a></td> </tr> <?php } ?> <tr> <td class="menugauche" height="12" width="12">&nbsp;</td> <td class="menugauche" height="25" width="118"><a href="../tour-info/default.php">Voyager en Europe</a></td> </tr> </table> </td> <td valign="middle" height="70%" align="center"> <form name='form_reservation' action='reservation2.php' method=POST> <input type="hidden" name="resa1toresa2" value="1"> <input type="hidden" name="timecourant" value="<?php print("$timecourant"); ?>"> <table width="250" border="0" cellspacing="0" cellpadding="0"> <tr> <td colspan="2" height="30" class="texteaccroche">Pour r&#233;server, choisissez :</td> </tr> <tr> <td width="20" height="25">&nbsp; </td> <td width="230" height="25"> <!-- PAYS DE LIVRAISON --> <select name='cmbpaysliv' onChange="qstypobj(this, 'valpaysliv', 'bkpaysliv')"> <?php if ($ppaysliv==0) { print("<option value='' selected>Votre pays de livraison</option>\n"); } else { print("<option value=''>Votre pays de livraison</option>\n"); } $query="SELECT DISTINCT pays_ctr FROM centre_livraison"; $stmt = @OCIParse($conn, $query); $exec_result = @OCIExecute($stmt,OCI_COMMIT_ON_SUCCESS); if(!$exec_result) { //echo OCIerror($stmt); } $i=1; while (@OCIFetchInto($stmt,$data,OCI_ASSOC)) { $paysCtr = trim($data['PAYS_CTR']); if ($ppaysliv==$i) { print("<option value='$i' selected>$paysCtr</option>\n"); $paysLiv=$paysCtr; } else { print("<option value='$i'>$paysCtr</option>\n"); } $i++; } ?> </select> </td> </tr> <tr> <td width="20" height="25"> <p>&nbsp; </p> </td> <td height="25"> <!-- CENTRE DE LIVRAISON --> <select name='cmbctrliv'> <?php if ($pctrliv==0) { print("<option value='' selected>Votre centre de livraison</option>\n"); } else { print("<option value=''>Votre centre de livraison</option>\n"); } $query="SELECT id_ctr, nom_ctr, ville_ctr from centre_livraison where pays_ctr='$paysLiv'"; $stmt = @OCIParse($conn, $query); $exec_result = @OCIExecute($stmt,OCI_COMMIT_ON_SUCCESS); if(!$exec_result) { //echo OCIerror($stmt); } while (@OCIFetchInto($stmt,$data,OCI_ASSOC)) { $idCtr = trim($data['ID_CTR']); // $nomCtr= trim($data['NOM_CTR']); $villeCtr= trim($data['VILLE_CTR']); if ($pctrliv==$idCtr) { print("<option value='$idCtr' selected>$villeCtr</option>\n"); } else { print("<option value='$idCtr'>$villeCtr</option>\n"); } } ?> </select> </td> </tr> <tr> <td colspan="2" height="30" class="texteaccroche">Veuillez indiquer votre date de livraison :</td> </tr> <tr> <td>&nbsp; </td> <td nowrap> <!-- MOIS DE LIVRAISON --> <select name='cmbmliv'> <?php $noOptions=1; $k=0; //$k=1; Anciennement while($noOptions <= 12) { $mois = date("n", $time20+$k*24*3600); $msuiv = date("n", $time20+($k+1)*24*3600); $annee = date("Y", $time20+$k*24*3600); $datetemp=$time20+$k*24*3600; if($mois!=$msuiv) { $noOptions++; if(date("n", $pmliv) == $mois) { print("<option value='$datetemp' selected>$listeMois[$mois] $annee</option>\n"); } else { print("<option value='$datetemp'>$listeMois[$mois] $annee</option>\n"); } } $k++; } ?> </select> <!-- JOUR DE LIVRAISON --> <select name='cmbjliv'> <?php for($i=1; $i<=31; $i++) { if($pjliv == $i) { print("<option value='$i' selected>$i</option>\n"); } else { print("<option value='$i'>$i</option>\n"); } } ?> </select> </td> </tr> <tr> <td colspan="2" align="center" height="55"><a href="javascript:checkform(document.forms[0])"><img src="../images/tt_continue.gif" width="85" height="21" border="0"></a></td> </tr> <tr> <td colspan="2" class="texte-alerte"> <?php if($dt==1) { $jourliv=date("d",$time20); $moisliv=$listeMoisCourts[date("n", $time20)]; $anneeliv=date("Y", $time20); print("Erreur : Choisissez une date après le $jourliv&nbsp;$moisliv&nbsp;$anneeliv"); } if($dt==2) { print("Erreur : Date incorrecte"); } if($dt==3) { $mf=$listeMoisCourts[$mf]; print("Erreur : Le centre est ferm&#233; le $jf&nbsp;$mf&nbsp;$af"); } ?> </td> </tr> </table> </form> </td> </tr> <tr valign="bottom"> <td colspan="2" align="right" height="20"> <table border="0" cellspacing="0" cellpadding="0"> <tr align="right"> <td class="menubas"><a href="../know-site/default.php">parrainage</a> | <a href="../us/default.php">nous</a> | <a href="../insite/default.php">le site</a> | <a href="../press/default.php">commentaires</a> | <a href="../terms/default.php">conditions de vente</a> | <a href="../faq/default.php">FAQ</a> | <a href="../contacts/default.php">contacts</a> | <a href="../tour-info/default2.php">liens</a></td> <td width=20>&nbsp;</td> </tr> </table> </td> </tr> </table> </body> <! Renault Eurodrive - Location et leasing de voitures hors taxe &#224; prix r&#233;duit pour vos voyages en Europe > </html> ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=17510&edit=1

« previous php.bugs (#8855) next »