From: xoneca+php at gmail dot com
Operating system: Windows XP SP2
PHP version: 5.2.3
PHP Bug Type: Reproducible crash
Bug description: PHP Crash (error with mbstring)
Description:
------------
PHP (CLI) crashes in module php_mbstring.dll
PHP (Apache 2.2 module) doesn't say anything of mbstring, but of mysql and
exif, but doesn't crash, they simply don't work (i.e. PHP's MySQL wrapper
doesn't work -says: "extension not loaded").
Reproduce code:
---------------
In command line: php -re mysql
Expected result:
----------------
Extension [ <persistent> extension #28 mysql version 1.0 ] {
- INI {
Entry [ mysql.allow_persistent <SYSTEM> ]
Current = '1'
}
Entry [ mysql.max_persistent <SYSTEM> ]
Current = '-1'
}
Entry [ mysql.max_links <SYSTEM> ]
Current = '-1'
}
Entry [ mysql.default_host <ALL> ]
Current = ''
}
Entry [ mysql.default_user <ALL> ]
Current = ''
}
Entry [ mysql.default_password <ALL> ]
Current = ''
}
Entry [ mysql.default_port <ALL> ]
Current = ''
}
Entry [ mysql.default_socket <ALL> ]
Current = ''
}
Entry [ mysql.connect_timeout <ALL> ]
Current = '60'
}
Entry [ mysql.trace_mode <ALL> ]
Current = ''
}
}
- Constants [7] {
Constant [ integer MYSQL_ASSOC ] { 1 }
Constant [ integer MYSQL_NUM ] { 2 }
Constant [ integer MYSQL_BOTH ] { 3 }
Constant [ integer MYSQL_CLIENT_COMPRESS ] { 32 }
Constant [ integer MYSQL_CLIENT_SSL ] { 2048 }
Constant [ integer MYSQL_CLIENT_INTERACTIVE ] { 1024 }
Constant [ integer MYSQL_CLIENT_IGNORE_SPACE ] { 256 }
}
- Functions {
Function [ <internal:mysql> function mysql_connect ] {
}
Function [ <internal:mysql> function mysql_pconnect ] {
}
Function [ <internal:mysql> function mysql_close ] {
}
Function [ <internal:mysql> function mysql_select_db ] {
}
Function [ <internal:mysql> function mysql_query ] {
}
Function [ <internal:mysql> function mysql_unbuffered_query ] {
}
Function [ <internal:mysql> function mysql_db_query ] {
}
Function [ <internal:mysql> function mysql_list_dbs ] {
}
Function [ <internal, deprecated:mysql> function mysql_list_tables ]
{
}
Function [ <internal:mysql> function mysql_list_fields ] {
}
Function [ <internal:mysql> function mysql_list_processes ] {
}
Function [ <internal:mysql> function mysql_error ] {
}
Function [ <internal:mysql> function mysql_errno ] {
}
Function [ <internal:mysql> function mysql_affected_rows ] {
}
Function [ <internal:mysql> function mysql_insert_id ] {
}
Function [ <internal:mysql> function mysql_result ] {
}
Function [ <internal:mysql> function mysql_num_rows ] {
}
Function [ <internal:mysql> function mysql_num_fields ] {
}
Function [ <internal:mysql> function mysql_fetch_row ] {
}
Function [ <internal:mysql> function mysql_fetch_array ] {
}
Function [ <internal:mysql> function mysql_fetch_assoc ] {
}
Function [ <internal:mysql> function mysql_fetch_object ] {
}
Function [ <internal:mysql> function mysql_data_seek ] {
}
Function [ <internal:mysql> function mysql_fetch_lengths ] {
}
Function [ <internal:mysql> function mysql_fetch_field ] {
}
Function [ <internal:mysql> function mysql_field_seek ] {
}
Function [ <internal:mysql> function mysql_free_result ] {
}
Function [ <internal:mysql> function mysql_field_name ] {
}
Function [ <internal:mysql> function mysql_field_table ] {
}
Function [ <internal:mysql> function mysql_field_len ] {
}
Function [ <internal:mysql> function mysql_field_type ] {
}
Function [ <internal:mysql> function mysql_field_flags ] {
}
Function [ <internal:mysql> function mysql_escape_string ] {
}
Function [ <internal:mysql> function mysql_real_escape_string ] {
}
Function [ <internal:mysql> function mysql_stat ] {
}
Function [ <internal:mysql> function mysql_thread_id ] {
}
Function [ <internal:mysql> function mysql_client_encoding ] {
}
Function [ <internal:mysql> function mysql_ping ] {
}
Function [ <internal:mysql> function mysql_get_client_info ] {
}
Function [ <internal:mysql> function mysql_get_host_info ] {
}
Function [ <internal:mysql> function mysql_get_proto_info ] {
}
Function [ <internal:mysql> function mysql_get_server_info ] {
}
Function [ <internal:mysql> function mysql_info ] {
}
Function [ <internal:mysql> function mysql_set_charset ] {
}
Function [ <internal:mysql> function mysql ] {
}
Function [ <internal:mysql> function mysql_fieldname ] {
}
Function [ <internal:mysql> function mysql_fieldtable ] {
}
Function [ <internal:mysql> function mysql_fieldlen ] {
}
Function [ <internal:mysql> function mysql_fieldtype ] {
}
Function [ <internal:mysql> function mysql_fieldflags ] {
}
Function [ <internal:mysql> function mysql_selectdb ] {
}
Function [ <internal:mysql> function mysql_freeresult ] {
}
Function [ <internal:mysql> function mysql_numfields ] {
}
Function [ <internal:mysql> function mysql_numrows ] {
}
Function [ <internal:mysql> function mysql_listdbs ] {
}
Function [ <internal, deprecated:mysql> function mysql_listtables ] {
}
Function [ <internal:mysql> function mysql_listfields ] {
}
Function [ <internal:mysql> function mysql_db_name ] {
}
Function [ <internal:mysql> function mysql_dbname ] {
}
Function [ <internal:mysql> function mysql_tablename ] {
}
Function [ <internal:mysql> function mysql_table_name ] {
}
}
}
Actual result:
--------------
Nothing but an error message (No error is logged by PHP):
CLI has detected a problem and has to be closed.
Details:
AppName: php.exe
AppVer: 5.2.3.3
ModName: php_mbstring.dll
ModVer: 5.2.3.3
Offset: 00001a76
--------------
Extensions loaded:
php_exif.dll (I've problems with this and Apache 2.2; CLI works)
php_gd2.dll
php_mbstring.dll
php_mysql.dll (I've also problems with this and Apache 2.2; CLI
works)
php_tidy.dll
--------------
PHP.INI (D:\php\php.ini)
extension_dir = D:\php\ext
include_path=".;D:\php\PEAR\pear" ; (Added by go-pear at bottom)
All other PHP.ini cfg not mentioned here is untouched from
php.ini-recommended (or I think it's not relevant)
--
Edit bug report at http://bugs.php.net/?id=42160&edit=1
--
Try a CVS snapshot (PHP 4.4):
http://bugs.php.net/fix.php?id=42160&r=trysnapshot44
Try a CVS snapshot (PHP 5.2):
http://bugs.php.net/fix.php?id=42160&r=trysnapshot52
Try a CVS snapshot (PHP 6.0):
http://bugs.php.net/fix.php?id=42160&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=42160&r=fixedcvs
Fixed in release:
http://bugs.php.net/fix.php?id=42160&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=42160&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=42160&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=42160&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=42160&r=support
Expected behavior: http://bugs.php.net/fix.php?id=42160&r=notwrong
Not enough info:
http://bugs.php.net/fix.php?id=42160&r=notenoughinfo
Submitted twice:
http://bugs.php.net/fix.php?id=42160&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=42160&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=42160&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=42160&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=42160&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=42160&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=42160&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=42160&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=42160&r=mysqlcfg