|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2005-08-05 10:44 UTC] 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);
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Nov 30 21:00:01 2025 UTC |
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 englishi 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'); } ?>