Property access not allowed yet when using mysqli_init(). Trying to skip secure auth in php

泄露秘密 提交于 2019-12-12 19:18:44

问题


I'm trying to skip secure authentication in php.

$con= mysqli_init();
mysqli_options( $con, "READ_MYSQLI_DEFAULT_FILE", "/etc/my.cnf" );
mysqli_real_connect( $con, "localhost", ....password,etc... )

When i debug in phpstorm, on the first line, mysqli_init fails and says property access is not allowed yet..


回答1:


after finding this answer on SO: mysqli + xdebug breakpoint after closing statment result in many warnings

it looks like its a bug in the mysqli driver, there was nothing wrong with the code or the connection however.



来源:https://stackoverflow.com/questions/29401923/property-access-not-allowed-yet-when-using-mysqli-init-trying-to-skip-secure

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!