summaryrefslogtreecommitdiffstats
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
* Add limited offset support to mysql_fetch_field()Davey Shafik2020-10-271-3/+26
| | | | `mysqli` seems to reuse the result objects and doesn't support this feature directly, making this feature very brittle. It should be avoided.
* Add missing warning from mysql_fetch_field()Davey Shafik2020-10-271-0/+4
|
* s/char/stringDavey Shafik2020-10-271-1/+1
|
* s/varchar/stringDavey Shafik2020-10-271-1/+1
|
* mysql_fetch_field() returns a string for typeDavey Shafik2020-10-271-0/+82
|
* Fix grammar on commentFernando da Silva Sousa2020-10-231-1/+1
|
* Fix possibility of empty backtrace caused by traces without file and lineFernando da Silva Sousa2020-10-231-4/+14
|
* Adds backtrace for illegal arguments suppliedFernando da Silva Sousa2020-10-221-2/+10
|
* Allow socket connectionsDavey Shafik2020-08-111-1/+8
|
* Don't try to assign fields if the fetch failedDavey Shafik2020-08-111-8/+10
|
* Fix mysqli_fetch_field consistencyBeno!t POLASZEK2020-08-111-1/+10
|
* $new is **NOT** supported by mysqli, reverting #45Davey Shafik2020-08-111-1/+5
|
* Avoid deprecated array access syntax (#47)Michele Locati2019-12-031-2/+2
|
* Handle custom ports defined in the hostname (#44)Mike Gilfillan2019-08-061-2/+10
| | | | | | | | | | | | | | | | | | * Handle custom ports defined in the hostname * Improve detection of custom ports when connecting Perstitent connections are defined by prepending the hostname with "p:". This would have been detected as the start of a custom port and broken the connection. A better solution is to detect the port at the end of host name using regex. * Never detect a prefix of "p:" as a hostname This improves edge cases when using a persistent connection with a numeric hostname. For example: "p:253"
* Use the parameter in a way compatible with the parameter in mysql_connect ↵Jonathan Hawkes2019-07-241-4/+2
| | | | (#45)
* Run phpcbf (#35)Webysther Nunes2017-09-291-3/+3
|
* Fix call to `mysqli_ping` (#28)Edward Savage2017-03-271-1/+1
| | | All of the other `mysqli_` functions with the `$link` as an argument used `\Dshafik\MySQL::getConnection($link)`. The call to `mysqli_ping` did not.
* Remove deprecation notice1.0.0beta2Davey Shafik2017-01-121-6/+0
|
* Add a single deprecation notice on loadDavey Shafik2017-01-101-0/+6
|
* Fix CSDavey Shafik2017-01-101-5/+5
|
* Check ext/mysqli is available (for non-composer installs)Davey Shafik2017-01-101-7/+11
|
* Refactor \Dshafik\MySQL::mysqlFieldInfo() to simplifyDavey Shafik2017-01-101-10/+6
|
* Add warning to the class commentDavey Shafik2017-01-081-2/+8
|
* Use extension_loadedDavey Shafik2017-01-081-1/+1
|
* Code cleanupDavey Shafik2017-01-081-60/+61
|
* Add third argument to `mysql_db_name()`Davey Shafik2017-01-081-5/+5
| | | | Fixes #23
* Add/update file header commentsDavey Shafik2017-01-081-0/+13
|
* Replaced array operator with explicit array() to lower required PHP version. ↵philip2017-01-081-9/+9
| | | | Should be 5.4 or 5.3 now, we'll see
* Replaced variadics/splat references to lower the required PHP version; splat ↵philip2017-01-081-28/+28
| | | | was added in PHP 5.6
* Added the result type to the mysql_fetch_array function (#16)Swen van Zanten2016-10-031-2/+2
| | | | | | * Added the result type to the mysql_fetch_array function * Changed the 'resultType' variable to camelCase, added extra tests * Fixed the mysql_fetch tests
* Add commentsDavey Shafik2016-10-031-0/+3
|
* mysql_connect should return FALSE when mysqli_connect fails. (#15)Михаил Красильников2016-10-031-2/+6
|
* Fix issues found by <insight.sensiolabs.com>Davey Shafik2016-07-041-2/+2
|
* Support database names with hyphensStefan Schramm2016-07-031-7/+13
| | | | | * Support database names with hyphens * Fix mysql_list_tables and mysql_list_fields
* use array_key_exists() instead of isset() because value can be nullGregor Harlan2016-04-181-1/+1
|
* Reset field pointer before iteratingDavey Shafik2016-03-101-0/+1
| | | | Fixes #7
* Refactor `Dshafik\MySQL::escapeString()`Davey Shafik2016-02-051-26/+30
|
* Simplify `\Dshafik\MySQL::getFieldType()`Davey Shafik2016-02-051-43/+36
|
* Simplify `\Dshafik\MySQL::getFieldFlags()`Davey Shafik2016-02-051-50/+21
|
* add unit test for mysqli defaultsGordon Franke2016-02-031-6/+6
|
* added default values from php.ini file if none providedD0609382016-02-031-0/+9
|
* Fix escaping not copying non-escapeable chars to the escaped stringDavey Shafik2016-02-021-6/+10
|
* Add/Fix all constantsDavey Shafik2016-02-021-4/+7
|
* Fix return values for `mysql_fetch_*` functionsDavey Shafik2016-02-021-8/+5
| | | | | | The methods `mysql_fetch_* and `mysqli_fetch_*` have different return values, if there is no [more] results to fetch. Therefore the **null** return value of `mysqli` needs to be matched to the **false** return value of `mysql`. Thanks to @muhammedalialat
* code cleanupGordon Franke2016-02-021-1/+0
|
* Update mysql.phpMuhammed Ali Alat2016-01-261-2/+9
|
* Handle weirdness with `mysql_table_name()`, especially on HHVMDavey Shafik2015-12-071-3/+3
|
* More tests, more fixesDavey Shafik2015-12-071-12/+115
| | | | - Reimplement original `mysql_escape_string()` based on C-code as close as possible - For some reason `mysql_fetch_object()` has a different error than all the other `mysql_fetch_*()` functions when passed an invalid result. ಠ_ಠ
* Add more tests and fixesDavey Shafik2015-12-061-126/+143
|
* Fix args for aliasesDavey Shafik2015-12-061-37/+22
|
* Update READMEDavey Shafik2015-12-061-16/+19
|
* Upto 20% functions/59% lines coverage, more issues revealedDavey Shafik2015-12-061-41/+278
|
* Add more tests, and fixed many issues revealed by themDavey Shafik2015-12-051-11/+63
|
* Initial commit of ext/mysql shim for PHP 7Davey Shafik2015-12-041-0/+416