php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #24791 Strange error caused by missing DLL
Submitted: 2003-07-24 07:23 UTC Modified: 2003-07-24 07:56 UTC
From: svanleent at wanadoo dot nl Assigned:
Status: Not a bug Package: Scripting Engine problem
PHP Version: 5.0.0b1 (beta1) OS: Windows XP
Private report: No CVE-ID: None
 [2003-07-24 07:23 UTC] svanleent at wanadoo dot nl
Description:
------------
As I try to run a simple php script ie.:

<? print('Hello world!') ?>

I get this strange error

Server error!
Error message: 
Premature end of script headers: php.exe 
If you think this is a server error, please contact the webmaster 
Error 500
localhost 
07/24/03 14:21:52

It's an error from the apache 2.0 webserver

I traced it back to it's core, and it seems that there is a DLL missing in the last download, namely "iconv.dll"

The distribution I downloaded was:
php-5.0.0b1-Win32.zip

Reproduce code:
---------------
<? print('Hello world!') ?>

Expected result:
----------------
Hello world!

Actual result:
--------------
Server error!
Error message: 
Premature end of script headers: php.exe 
If you think this is a server error, please contact the webmaster 
Error 500
localhost 
07/24/03 14:21:52 

and running php.exe as executable gives:

Application termination

because iconv.dll is missing

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-07-24 07:56 UTC] sniper@php.net
It's not bug. iconv.dll can be found in the dlls/ folder in the release package.

 [2003-07-24 19:17 UTC] Nico dot Laus dot 2001 at gmx dot de
You simply have to put all the dlls in PHP\dlls into your Windows\System32 directory!
-> it should work then

you can either put them into your PHP folder, I think
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Thu Nov 27 12:00:01 2025 UTC