From: [EMAIL PROTECTED]
Operating system: Linux
PHP version: 4.0CVS-2002-05-29
PHP Bug Type: Reproducible crash
Bug description: PHP module crash
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é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éservation en ligne pour le représentant,
redirection vers contacts
if($optCom==1) {
header("location:contact.php");
}
//Mise à 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 à
prix réduit pour vos voyages
en Europe >
<! Renault Eurodrive - Location et leasing de voitures hors taxe à
prix réduit pour les résidents é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étaxée,
Leasing de voitures, Location-vente de voitures, Renault Eurodrive,
Leasing de voitures Renault, Location de voitures résidents
étrangers, Résidents étrangers, Voyage en Europe, Billet
Avion-Auto, Location de voitures, Location de voitures à
l'aéroport, Location Voitures, Location Voitures en Europe,
Réservation de voitures, Location de voitures à prix
réduit">
<meta NAME="description"
content=" Renault Eurodrive assure la location de véhicules à
prix réduits et hors taxe aux touristes non résidents de l'UE et
aux ressortissants de l'UE n'y résidant pas. Tous nos véhicules
sont enti�rement équipés et loués à un prix
réduit dans toute l'Europe. Les véhicules peuvent �tre
loués à court ou à long terme dans tous les principaux
aéroports Européens (Billet Avion-Auto) aux meilleurs prix et
hors taxe pour voyager à travers toute l'Europe.">
<meta NAME="Robots" content="index,follow">
<meta NAME="Revisit-After" content="7 days">
<meta NAME="Author" content="[EMAIL PROTECTED]">
<meta NAME="GENERATOR"
content=" Renault Eurodrive - Location et leasing de voitures hors taxe
à prix réduit pour vos voyages
en Europe ">
<meta NAME="Copyright" content="�1997-2001 www.eurodrive.renault.com">
<link rev="made" href="mailto:[EMAIL PROTECTED]">
<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%"> </td>
<td width="100%" align="right" height="5%">
<table width="80" border="0" cellspacing="0" cellpadding="0">
<tr>
<td align="right" nowrap height="50"> </td>
<td width="20"> </td>
</tr>
<tr>
<td align="right" nowrap height="30" class="menubas">
<?php menulang("reservation/default.php"); ?>
</td>
<td width="20"> </td>
</tr>
</table>
<table border="0" cellspacing="0" cellpadding="0" align="left"
width="370">
<tr>
<td width="65"> </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"> </td>
<td class="menugauche" height="35"> </td>
</tr>
<tr>
<td class="menugauche" height="12" width="12"> </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"> </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"> </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"> </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"> </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"> </td>
<td class="menugauche" height="25" width="118"><a
href="default.php?new=1">Réservation</a></td>
</tr>
<tr>
<td class="menugauche" width="12"> </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"> </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éserver,
choisissez :</td>
</tr>
<tr>
<td width="20" height="25"> </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> </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> </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 $moisliv $anneeliv");
}
if($dt==2) {
print("Erreur : Date incorrecte");
}
if($dt==3) {
$mf=$listeMoisCourts[$mf];
print("Erreur : Le centre est fermé le
$jf $mf $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> </td>
</tr>
</table>
</td>
</tr>
</table>
</body>
<! Renault Eurodrive - Location et leasing de voitures hors taxe à
prix réduit pour vos voyages
en Europe >
</html>
--
Edit bug report at http://bugs.php.net/?id=17510&edit=1
--
Fixed in CVS: http://bugs.php.net/fix.php?id=17510&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=17510&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=17510&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=17510&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=17510&r=support
Expected behavior: http://bugs.php.net/fix.php?id=17510&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=17510&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=17510&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=17510&r=globals