php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #34004 an fatal error on php5ts.dll
Submitted: 2005-08-05 10:44 UTC Modified: 2005-08-05 19:49 UTC
From: kenji at neojin dot com Assigned:
Status: Not a bug Package: Unknown/Other Function
PHP Version: 5.0.4 OS: windows xp
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: kenji at neojin dot com
New email:
PHP Version: OS:

 

 [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);


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-08-05 10:45 UTC] derick@php.net
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 13:42 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:
---------------

<?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 13:47 UTC] tony2001@php.net
Please provide a short but *COMPLETE* reproduce script, so we can copy/paste it and reproduce your problem.
Thank you.
 [2005-08-05 15:38 UTC] kenji at neojin dot com
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');
			}
?>
 [2005-08-05 19:49 UTC] tony2001@php.net
The code you've provided does nothing, it doesn't contain even a function call. And it works perfectly with any data I  pass to the function.

Please reopen the report when you have a *short* but *complete* reproduce script that clearly shows your problem.

Until then -> bogus.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Mon Aug 04 06:00:03 2025 UTC