php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #79107 Undefined property: mysqli::$stat
Submitted: 2020-01-13 03:33 UTC Modified: 2020-01-13 03:35 UTC
From: bkfake-php at yahoo dot com Assigned:
Status: Not a bug Package: MySQLi related
PHP Version: 7.4.1 OS: osx
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
39 + 43 = ?
Subscribe to this entry?

 
 [2020-01-13 03:33 UTC] bkfake-php at yahoo dot com
Description:
------------
Undefined property: mysqli::$stat

client_info = mysqlnd 7.4.1


Test script:
---------------
$mysqli = new mysqli();
$mysqli->stat;  // triggers Undefined property

Expected result:
----------------
if above example, stat should be an empty string

Actual result:
--------------
Warning:  Undefined property

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2020-01-13 03:34 UTC] requinix@php.net
-Status: Open +Status: Not a bug
 [2020-01-13 03:34 UTC] requinix@php.net
Sorry, but your problem does not imply a bug in PHP itself.  For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system is not the
appropriate forum for asking support questions.  Due to the volume
of reports we can not explain in detail here why your report is not
a bug.  The support channels will be able to provide an explanation
for you.

Thank you for your interest in PHP.

https://www.php.net/manual/en/mysqli.stat.php
 [2020-01-13 03:35 UTC] requinix@php.net
Oops. I meant to say


Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to report
a bug at http://bugs.php.net/how-to-report.php
 [2020-01-13 04:14 UTC] bkfake-php at yahoo dot com
Update:  I may have a reading comprehension issue  

not sure if $stat property value was ever documented or when it went away, but able to use stat() method just the same.
 [2020-01-13 19:58 UTC] a at b dot c dot de
https://www.php.net/manual/en/migration74.incompatible.php#migration74.incompatible.mysqli

"The undocumented mysqli::$stat property has been removed in favor of mysqli::stat()."
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Mar 29 06:01:29 2024 UTC