ID: 34004
User updated by: kenji at neojin dot com
Reported By: kenji at neojin dot com
-Status: Feedback
+Status: Open
Bug Type: *Web Server problem
Operating System: windows xp
PHP Version: 5.0.4
New Comment:
i find the bug
this fonction create the fatal error with apache and php5ts.dll on my
computer
i delete her and all it's ok
when i replace this fonction => fatal error
i hope that you help
<?php
function sansaccent($chaine){
return
strtr($chaine,'àâäåãáÂÄÀÅÃÁæÆçÇéèêëÉÊËÈïîìíÏÎÌÍñÑöôóòõÓÔÖÒÕùûüúÜÛÙÚÿ','aaaaaaaaaaaaaacceeeeeeeeiiiiiiiinnoooooooooouuuuuuuuy');
}
?>
Previous Comments:
------------------------------------------------------------------------
[2005-08-05 13:47:48] [EMAIL PROTECTED]
Please provide a short but *COMPLETE* reproduce script, so we can
copy/paste it and reproduce your problem.
Thank you.
------------------------------------------------------------------------
[2005-08-05 13:42:23] kenji at neojin dot com
Description:
------------
A windows erreor in php5ts.dll with windows xp and apache :
php5ts.dll crashes apache 2.0.54
version php5ts.dll : 5.0.4.4
signature :
szAppNAme : Apache.exe
szAppVer : 2.0.54.0
szModName : php5ts.dll
szModVer : 5.0.4.4
offset : 0003b927
I have uninstall php and reinstall it five times but the error is
alaways the same
Reproduce code:
---------------
<?php
function sansaccent($chaine){
return
strtr($chaine,'àâäåãáÂÄÀÅÃÁæÆçÇéèêëÉÊËÈïîìíÏÎÌÍñÑöôóòõÓÔÖÒÕùûüúÜÛÙÚÿ','a
aaaaaaaaaaaaacceeeeeeeeiiiiiiiinnoooooooooouuuuuuuuy');
}
//creation du fichier xml
$result = $Bdd -> Send_Query("SELECT * FROM file_xml");
if($objet = $Bdd -> get_object($result)){
$id_file = $objet -> id_file_xml;
}
if($id_file<>''){
if(file_exists('../../cache/liste'.$id_file.'.xml')){
@unlink('../../cache/liste'.$id_file.'.xml');
}
$Bdd -> Send_Query("DELETE FROM file_xml");
}
$Bdd -> Send_Query("INSERT INTO file_xml (date,heure)
VALUES
(now(),now())");
$id_xml = $Bdd -> insert_id();
/*$xml = '<?xml version="1.0" encoding="UTF-8" ?>';*/
$xml .= '<main>';
$i = 1;
$result = $Bdd -> Send_Query("SELECT * FROM maisons");
while($objet = $Bdd -> get_object($result)){
$nom = stripslashes($objet -> m_nom);
$xml .= '<cubor id="'.$i.'"
nom="'.sansaccent($nom).'">
<methode type="" />
<temps meilleur="" moyenne=""/>
<lieu departement="" numero="'.$objet
-> m_dpt.'" />
<courriel adresse=""
site="maison_presentation_'.$objet ->
id_maisons.'.html"/>
</cubor>';
}
$xml .= '</main>';
$handle = fopen('../../cache/liste'.$id_xml.'.xml',
'w+');
fwrite($handle, $xml);
fclose($handle);
?>
hello
the problem is the script is in my own develeppement server offline
i have uninstall and reinstall windows and just install apache / php
for test but the result is same witdh the script
if i comment this script all it s ok
i don't understand why this bug
i tried this script under another server width apache 1.3.23 and php
5.0.4 and it s ok
my computer :
p4 3.0
2 go ram
ati x700 pro
win xp sp2
the problem can be width ram ?
sorry another script are ok
just this not works and several error width windows appear
ps : sorry for my english
------------------------------------------------------------------------
[2005-08-05 10:45:49] [EMAIL PROTECTED]
Thank you for this bug report. To properly diagnose the problem, we
need a short but complete example script to be able to reproduce
this bug ourselves.
A proper reproducing script starts with <?php and ends with ?>,
is max. 10-20 lines long and does not require any external
resources such as databases, etc.
If possible, make the script source available online and provide
an URL to it here. Try to avoid embedding huge scripts into the report.
------------------------------------------------------------------------
[2005-08-05 10:44:35] kenji at neojin dot com
Description:
------------
A windows erreor in php5ts.dll with windows xp and apache :
php5ts.dll crashes apache 2.0.54
version php5ts.dll : 5.0.4.4
signature :
szAppNAme : Apache.exe
szAppVer : 2.0.54.0
szModName : php5ts.dll
szModVer : 5.0.4.4
offset : 0003b927
I have uninstall php and reinstall it five times but the error is
alaways the same
Reproduce code:
---------------
function sansaccent($chaine){
return
strtr($chaine,'àâäåãáÂÄÀÅÃÁæÆçÇéèêëÉÊËÈïîìíÏÎÌÍñÑöôóòõÓÔÖÒÕùûüúÜÛÙÚÿ','aaaaaaaaaaaaaacceeeeeeeeiiiiiiiinnoooooooooouuuuuuuuy');
}
//creation du fichier xml
$result = $Bdd -> Send_Query("SELECT * FROM file_xml");
if($objet = $Bdd -> get_object($result)){
$id_file = $objet -> id_file_xml;
}
if($id_file<>''){
if(file_exists('../../cache/liste'.$id_file.'.xml')){
@unlink('../../cache/liste'.$id_file.'.xml');
}
$Bdd -> Send_Query("DELETE FROM file_xml");
}
$Bdd -> Send_Query("INSERT INTO file_xml (date,heure)
VALUES
(now(),now())");
$id_xml = $Bdd -> insert_id();
/*$xml = '<?xml version="1.0" encoding="UTF-8" ?>';*/
$xml .= '<main>';
$i = 1;
$result = $Bdd -> Send_Query("SELECT * FROM maisons");
while($objet = $Bdd -> get_object($result)){
$nom = stripslashes($objet -> m_nom);
$xml .= '<cubor id="'.$i.'"
nom="'.sansaccent($nom).'">
<methode type="" />
<temps meilleur="" moyenne=""/>
<lieu departement="" numero="'.$objet
-> m_dpt.'" />
<courriel adresse=""
site="maison_presentation_'.$objet ->
id_maisons.'.html"/>
</cubor>';
}
$xml .= '</main>';
$handle = fopen('../../cache/liste'.$id_xml.'.xml',
'w+');
fwrite($handle, $xml);
fclose($handle);
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=34004&edit=1