File tree Expand file tree Collapse file tree 2 files changed +0
-20
lines changed Expand file tree Collapse file tree 2 files changed +0
-20
lines changed Original file line number Diff line number Diff line change @@ -247,12 +247,6 @@ protected function _readdb($fname)
247
247
protected function _checkTrigram ($ trigram )
248
248
{
249
249
if (!is_array ($ trigram )) {
250
- if (ini_get ('magic_quotes_runtime ' )) {
251
- throw new Text_LanguageDetect_Exception (
252
- 'Error loading database. Try turning magic_quotes_runtime off. ' ,
253
- Text_LanguageDetect_Exception::MAGIC_QUOTES
254
- );
255
- }
256
250
throw new Text_LanguageDetect_Exception (
257
251
'Language database is not an array. ' ,
258
252
Text_LanguageDetect_Exception::DB_NOT_ARRAY
Original file line number Diff line number Diff line change @@ -16,7 +16,6 @@ class Text_LanguageDetectTest extends PHPUnit_Framework_TestCase {
16
16
17
17
function setup ()
18
18
{
19
- ini_set ('magic_quotes_runtime ' , 0 );
20
19
$ this ->x = new Text_LanguageDetect ();
21
20
$ this ->xproxy = new PrivProxy ($ this ->x );
22
21
}
@@ -81,19 +80,6 @@ function test_checkTrigramNoArray()
81
80
$ this ->xproxy ->_checkTrigram ('foo ' );
82
81
}
83
82
84
- /**
85
- * @expectedException Text_LanguageDetect_Exception
86
- * @expectedExceptionMessage Error loading database. Try turning magic_quotes_runtime off
87
- */
88
- function test_checkTrigramNoArrayMagicQuotes ()
89
- {
90
- if (version_compare (PHP_VERSION , '5.4.0-dev ' ) >= 0 ) {
91
- $ this ->markTestSkipped ('5.4.0 has no magic quotes anymore ' );
92
- }
93
- ini_set ('magic_quotes_runtime ' , 1 );
94
- $ this ->xproxy ->_checkTrigram ('foo ' );
95
- }
96
-
97
83
function test_splitter ()
98
84
{
99
85
$ str = 'hello ' ;
You can’t perform that action at this time.
0 commit comments