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:

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


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

[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