summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorDavey Shafik <me@daveyshafik.com>2016-02-02 13:35:51 -0500
committerDavey Shafik <me@daveyshafik.com>2016-02-02 13:35:51 -0500
commit0beca6be082fce3e7e10d7495bd07e1f2e3f972e (patch)
tree780852f3b19ab055fb9cd12e7e09bc4204405f46 /tests
parent3527de42a66bcc7462f86f85bb7fce57ca77b540 (diff)
downloadphp7-mysql-shim-0beca6be082fce3e7e10d7495bd07e1f2e3f972e.zip
php7-mysql-shim-0beca6be082fce3e7e10d7495bd07e1f2e3f972e.tar.gz
php7-mysql-shim-0beca6be082fce3e7e10d7495bd07e1f2e3f972e.tar.bz2
Fix escaping not copying non-escapeable chars to the escaped string
Diffstat (limited to 'tests')
-rw-r--r--tests/MySqlShimTest.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/MySqlShimTest.php b/tests/MySqlShimTest.php
index b4ae963..097692d 100644
--- a/tests/MySqlShimTest.php
+++ b/tests/MySqlShimTest.php
@@ -656,7 +656,7 @@ class MySqlShimTest extends \PHPUnit_Framework_TestCase
public function test_mysql_escape_string()
{
- $this->assertEquals('\\\'\0\Z\r\n\"\\\\', @mysql_escape_string("'\0\032\r\n\"\\"));
+ $this->assertEquals('\\\'\0\Z\r\n\"\\\\safestring', @mysql_escape_string("'\0\032\r\n\"\\safestring"));
}
/**