php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #23575 Typo on registerfunction function will kill apache
Submitted: 2003-05-10 13:20 UTC Modified: 2006-04-03 12:26 UTC
Votes:5
Avg. Score:4.6 ± 0.8
Reproduced:1 of 1 (100.0%)
Same Version:0 (0.0%)
Same OS:0 (0.0%)
From: Buzer at finnishgg dot net Assigned:
Status: Not a bug Package: Feature/Change Request
PHP Version: 5CVS-2003-05-10 (dev) OS: Windows 2000 SP3
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: Buzer at finnishgg dot net
New email:
PHP Version: OS:

 

 [2003-05-10 13:20 UTC] Buzer at finnishgg dot net
If you make typo on registerfunction (w32api), it will completly screw php.
Following line made mine Apache to crash and I can't get start it anymore if I don't remove php module. CGI version is screwed too.
<?php
$api = new win32;
$api->registerfunction("long SendMessage (string &a, string &b, int &c, sring &d) From user32.dll");
?>
(note that there isn't t at last argument).
PHP version: PHP5
Webserver: Apache 2.0.45
Modules:
extension=php_bz2.dll
extension=php_cpdf.dll
extension=php_crack.dll
extension=php_curl.dll
extension=php_db.dll
extension=php_dba.dll
extension=php_dbase.dll
extension=php_dbx.dll
extension=php_domxml.dll
extension=php_exif.dll
extension=php_fbsql.dll
extension=php_fdf.dll
extension=php_filepro.dll
extension=php_gd.dll
extension=php_gd2.dll
extension=php_gettext.dll
extension=php_hyperwave.dll
extension=php_iconv.dll
extension=php_ifx.dll
extension=php_iisfunc.dll
extension=php_imap.dll
extension=php_interbase.dll
extension=php_java.dll
extension=php_ldap.dll
extension=php_mbstring.dll
extension=php_mcrypt.dll
extension=php_mhash.dll
extension=php_mime_magic.dll
extension=php_ming.dll
extension=php_mssql.dll
extension=php_msql.dll
extension=php_oci8.dll
extension=php_openssl.dll
extension=php_oracle.dll
extension=php_pdf.dll
extension=php_pgsql.dll
extension=php_printer.dll
extension=php_shmop.dll
extension=php_snmp.dll
extension=php_sockets.dll
extension=php_sybase_ct.dll
extension=php_w32api.dll
extension=php_xmlrpc.dll
extension=php_xslt.dll
extension=php_yaz.dll
extension=php_zip.dll

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2006-04-03 12:26 UTC] tony2001@php.net
Please report PECL bugs to PECL bug system.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Mon Dec 29 03:00:01 2025 UTC