Test: /ext/mysqli/tests/bug34810.phpt - Version 7.4.3-dev        

Bug #34810 mysqli::init() and others use wrong $this pointer without checks
Submitted: 2005-10-10 14:37:56 Modified: 2005-10-10 14:59:55
From: antony Assigned: tony2001
Status: Closed Package: Reproducible crash
PHP Version: 5.1.0RC1 OS: Linux

There are 4 different diffs reported by users for this test.

Count Diff
4 (31%)
040+ 041+ Warning: var_dump(): Property access is not allowed yet in %s/bug34810.php on line 11 042+ 043+ Warning: var_dump(): Property access is not allowed yet in %s/bug34810.php on line 11 044+ 045+ Warning: var_dump(): Property access is not allowed yet in %s/bug34810.php on line 11 046+ 047+ Warning: var_dump(): Property access is not allowed yet in %s/bug34810.php on line 11 048+ 049+ Warning: var_dump(): Property access is not allowed yet in %s/bug34810.php on line 11 050+ 051+ Warning: var_dump(): Property access is not allowed yet in %s/bug34810.php on line 11 052+ 053+ Warning: var_dump(): Property access is not allowed yet in %s/bug34810.php on line 11 054+ 055+ Warning: var_dump(): Property access is not allowed yet in %s/bug34810.php on line 11 056+ 057+ Warning: var_dump(): Property access is not allowed yet in %s/bug34810.php on line 11 058+ 059+ Warning: var_dump(): Property access is not allowed yet in %s/bug34810.php on line 11 060+ 061+ Warning: var_dump(): Property access is not allowed yet in %s/bug34810.php on line 11 062+ 063+ Warning: var_dump(): Property access is not allowed yet in %s/bug34810.php on line 11 064+ object(mysqli)#4 (6) { 065+ ["client_info"]=> 066+ string(17) "mysqlnd 7.4.3-dev" 067+ ["client_version"]=> 068+ int(70403) 069+ ["connect_errno"]=> 070+ int(0) 071+ ["connect_error"]=> 072+ NULL 073+ ["errno"]=> 074+ int(0) 075+ ["error"]=> 076+ string(0) "" 040- object(mysqli)#%d (%d) { 041- ["affected_rows"]=> 042- bool(false) 043- ["client_info"]=> 044- string(%d) "%s" 045- ["client_version"]=> 046- int(%d) 047- ["connect_errno"]=> 048- int(0) 049- ["connect_error"]=> 050- NULL 051- ["errno"]=> 052- int(0) 053- ["error"]=> 054- string(0) "" 055- ["error_list"]=> 056- bool(false) 057- ["field_count"]=> 058- bool(false) 059- ["host_info"]=> 060- bool(false) 061- ["info"]=> 062- bool(false) 063- ["insert_id"]=> 064- bool(false) 065- ["server_info"]=> 066- bool(false) 067- ["server_version"]=> 068- bool(false) 069- ["sqlstate"]=> 070- bool(false) 071- ["protocol_version"]=> 072- bool(false) 073- ["thread_id"]=> 074- bool(false) 075- ["warning_count"]=> 076- bool(false)
3 (23%)
040+ 041+ Warning: var_dump(): Property access is not allowed yet in %s/bug34810.php on line 11 042+ 043+ Warning: var_dump(): Property access is not allowed yet in %s/bug34810.php on line 11 044+ 045+ Warning: var_dump(): Property access is not allowed yet in %s/bug34810.php on line 11 046+ 047+ Warning: var_dump(): Property access is not allowed yet in %s/bug34810.php on line 11 048+ 049+ Warning: var_dump(): Property access is not allowed yet in %s/bug34810.php on line 11 050+ 051+ Warning: var_dump(): Property access is not allowed yet in %s/bug34810.php on line 11 052+ 053+ Warning: var_dump(): Property access is not allowed yet in %s/bug34810.php on line 11 054+ 055+ Warning: var_dump(): Property access is not allowed yet in %s/bug34810.php on line 11 056+ 057+ Warning: var_dump(): Property access is not allowed yet in %s/bug34810.php on line 11 058+ 059+ Warning: var_dump(): Property access is not allowed yet in %s/bug34810.php on line 11 060+ 061+ Warning: var_dump(): Property access is not allowed yet in %s/bug34810.php on line 11 062+ 063+ Warning: var_dump(): Property access is not allowed yet in %s/bug34810.php on line 11 064+ object(mysqli)#4 (18) { 065+ ["affected_rows"]=> 040- object(mysqli)#%d (%d) { 041- ["affected_rows"]=> 042- bool(false) 043- ["client_info"]=> 044- string(%d) "%s" 045- ["client_version"]=> 046- int(%d) 047- ["connect_errno"]=> 048- int(0) 049- ["connect_error"]=> 050- NULL 051- ["errno"]=> 052- int(0) 053- ["error"]=> 054- string(0) "" 055- ["error_list"]=> 057- ["field_count"]=> 058- bool(false) 059- ["host_info"]=> 067+ ["client_info"]=> 068+ string(17) "mysqlnd 7.4.3-dev" 069+ ["client_version"]=> 070+ int(70403) 071+ ["connect_errno"]=> 072+ int(0) 073+ ["connect_error"]=> 074+ NULL 075+ ["errno"]=> 076+ int(0) 077+ ["error"]=> 078+ string(0) "" 079+ ["error_list"]=> 081+ ["field_count"]=> 082+ bool(false) 083+ ["host_info"]=> 084+ bool(false)
3 (23%)
041- ["affected_rows"]=> 042- bool(false) 053+ } 054+ 055+ Fatal error: Uncaught Exception: var_dump(): Property access is not allowed yet in %s/bug34810.php:11 056+ Stack trace: 057+ #0 %s/bug34810.php(11): var_dump(Object(mysqli)) 058+ #1 %s/bug34810.php(38): DbConnection->connect() 059+ #2 {main} 060+ thrown in %s/bug34810.php on line 11 055- ["error_list"]=> 056- bool(false) 057- ["field_count"]=> 058- bool(false) 059- ["host_info"]=> 060- bool(false) 061- ["info"]=> 062- bool(false) 063- ["insert_id"]=> 064- bool(false) 065- ["server_info"]=> 066- bool(false) 067- ["server_version"]=> 068- bool(false) 069- ["sqlstate"]=> 070- bool(false) 071- ["protocol_version"]=> 072- bool(false) 073- ["thread_id"]=> 074- bool(false) 075- ["warning_count"]=> 076- bool(false) 077- } 078- Done
3 (23%)
041- ["affected_rows"]=> 042- bool(false) 053+ } 054+ Done 055- ["error_list"]=> 056- bool(false) 057- ["field_count"]=> 058- bool(false) 059- ["host_info"]=> 060- bool(false) 061- ["info"]=> 062- bool(false) 063- ["insert_id"]=> 064- bool(false) 065- ["server_info"]=> 066- bool(false) 067- ["server_version"]=> 068- bool(false) 069- ["sqlstate"]=> 070- bool(false) 071- ["protocol_version"]=> 072- bool(false) 073- ["thread_id"]=> 074- bool(false) 075- ["warning_count"]=> 076- bool(false) 077- } 078- Done