ID:               49732
 Updated by:       paj...@php.net
 Reported By:      nirvn dot asia at gmail dot com
 Status:           Feedback
 Bug Type:         Unknown/Other Function
 Operating System: windows xp
 PHP Version:      5.3.0
 Assigned To:      pajoye
 New Comment:

Ok, I have a fix for at least the crash but I'm not sure we can fix the
detection failure.

Can you create a small word document in Word (cambodia version or the
language you used) please? I would like to see if it is the "kaboom.doc"
that is corrupt or if there is something different in the format for
this version of Word.

Check if timestamp conversion failed: http://pastie.org/637883


Previous Comments:
------------------------------------------------------------------------

[2009-10-01 09:42:59] nirvn dot asia at gmail dot com

I've just downloaded a 5.3 snapshot from the link provided and confirm
it still crashes PHP.

Pajoye, thanks for the quick answer, it's appreciated.

------------------------------------------------------------------------

[2009-10-01 09:22:09] paj...@php.net

I got the mail later, but you can still try with a snapshot :)

------------------------------------------------------------------------

[2009-10-01 09:21:28] paj...@php.net

Can you post a link to the file or drop me a mail with the file
attached please?

Please also try using a 5.3 snapshot
(http://windows.php.net/snapshots).

------------------------------------------------------------------------

[2009-10-01 07:51:01] nirvn dot asia at gmail dot com

Hrm, I didn't know we can't attach files to bug reports. I've uploaded
it to our NGO website for easy access to any developer who would like to
help resolving this bug.

$fname = http://www.licadho-cambodia.org/php/kaboom.doc

I've also attached the basic debug info that XP outputs when it
crashes, you can access it from
http://www.licadho-cambodia.org/php/xpcrash.txt

------------------------------------------------------------------------

[2009-10-01 07:27:27] nirvn dot asia at gmail dot com

Description:
------------
Using the function finfo_file() to get the mime of the file attached to
this bug will crash PHP (and apache) on windows XP / 2003. I didn't have
the chance to test it on a linux machine. 


Reproduce code:
---------------
//here's the code that goes kaboom
$finfo = finfo_open(FILEINFO_MIME); 
$mime = finfo_file($finfo,realpath($fname));
finfo_close($finfo);

Expected result:
----------------
Returns the mime type of desired file.

Actual result:
--------------
Crash.


------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=49732&edit=1

Reply via email to