|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2009-09-11 19:27 UTC] the_djmaze at hotmail dot com
Description: ------------ Documention is incorrect because they are properties. Reproduce code: --------------- According to: http://php.net/manual/en/mysqli.get-client-info.php This is: string mysqli::get_client_info ( void ) Should be: string mysqli->client_info According to: http://php.net/manual/en/mysqli.get-client-version.php This is: string mysqli::get_client_version ( void ) Should be: string mysqli->client_version Expected result: ---------------- method Actual result: -------------- property PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Nov 19 18:00:02 2025 UTC |
According to php.exe --rc mysqli on PHP 5.3.2-dev (cli) (built: Sep 24 2009 09:01:58), the methods are NOT static, but normal public functions. Class [ <internal:mysqli> class mysqli ] { - Constants [0] { } - Static properties [0] { } - Static methods [0] { } - Properties [17] { Property [ <default> public $affected_rows ] Property [ <default> public $client_info ] Property [ <default> public $client_version ] Property [ <default> public $connect_errno ] Property [ <default> public $connect_error ] Property [ <default> public $errno ] Property [ <default> public $error ] Property [ <default> public $field_count ] Property [ <default> public $host_info ] Property [ <default> public $info ] Property [ <default> public $insert_id ] Property [ <default> public $server_info ] Property [ <default> public $server_version ] Property [ <default> public $sqlstate ] Property [ <default> public $protocol_version ] Property [ <default> public $thread_id ] Property [ <default> public $warning_count ] } - Methods [40] { Method [ <internal:mysqli> public method autocommit ] { } Method [ <internal:mysqli> public method change_user ] { } Method [ <internal:mysqli> public method character_set_name ] { } Method [ <internal:mysqli> public method client_encoding ] { } Method [ <internal:mysqli> public method close ] { } Method [ <internal:mysqli> public method commit ] { } Method [ <internal:mysqli> public method connect ] { } Method [ <internal:mysqli> public method dump_debug_info ] { } Method [ <internal:mysqli> public method debug ] { } Method [ <internal:mysqli> public method get_charset ] { } Method [ <internal:mysqli> public method get_client_info ] { } Method [ <internal:mysqli> public method get_connection_stats ] { } Method [ <internal:mysqli> public method get_server_info ] { } Method [ <internal:mysqli> public method get_warnings ] { } Method [ <internal:mysqli> public method init ] { } Method [ <internal:mysqli> public method kill ] { } Method [ <internal:mysqli> public method multi_query ] { } Method [ <internal:mysqli, ctor> public method mysqli ] { } Method [ <internal:mysqli> public method more_results ] { } Method [ <internal:mysqli> public method next_result ] { } Method [ <internal:mysqli> public method options ] { } Method [ <internal:mysqli> public method ping ] { } Method [ <internal:mysqli> public method prepare ] { } Method [ <internal:mysqli> public method query ] { } Method [ <internal:mysqli> public method real_connect ] { } Method [ <internal:mysqli> public method real_escape_string ] { } Method [ <internal:mysqli> public method poll ] { } Method [ <internal:mysqli> public method reap_async_query ] { } Method [ <internal:mysqli> public method escape_string ] { } Method [ <internal:mysqli> public method real_query ] { } Method [ <internal:mysqli> public method rollback ] { } Method [ <internal:mysqli> public method select_db ] { } Method [ <internal:mysqli> public method set_charset ] { } Method [ <internal:mysqli> public method set_opt ] { } Method [ <internal:mysqli> public method stat ] { } Method [ <internal:mysqli> public method stmt_init ] { } Method [ <internal:mysqli> public method store_result ] { } Method [ <internal:mysqli> public method thread_safe ] { } Method [ <internal:mysqli> public method use_result ] { } Method [ <internal:mysqli> public method refresh ] { } } }