Skip to content

Commit b0cd3a9

Browse files
committed
Remove short_open_tag INI setting definition in strip_tags tests.
1 parent 472b3c6 commit b0cd3a9

11 files changed

+6
-36
lines changed

ext/standard/tests/strings/strip_tags_basic1.phpt

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
--TEST--
22
Test strip_tags() function : basic functionality - with default arguments
3-
--INI--
4-
short_open_tag = on
53
--FILE--
64
<?php
75
/* Prototype : string strip_tags(string $str [, string $allowable_tags])
@@ -43,7 +41,6 @@ foreach($string_array as $string)
4341
echo "Done";
4442
?>
4543
--EXPECT--
46-
Deprecated: Directive 'short_open_tag' is deprecated in Unknown on line 0
4744
*** Testing strip_tags() : basic functionality ***
4845
-- Iteration 1 --
4946
string(5) "hello"

ext/standard/tests/strings/strip_tags_basic2.phpt

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
--TEST--
22
Test strip_tags() function : basic functionality - with all arguments
3-
--INI--
4-
short_open_tag = on
53
--FILE--
64
<?php
75
/* Prototype : string strip_tags(string $str [, string $allowable_tags])
@@ -39,7 +37,6 @@ foreach($allowed_tags_array as $tags)
3937
echo "Done";
4038
?>
4139
--EXPECT--
42-
Deprecated: Directive 'short_open_tag' is deprecated in Unknown on line 0
4340
*** Testing strip_tags() : basic functionality ***
4441
-- Iteration 1 --
4542
string(33) "<html>helloworldOther text</html>"

ext/standard/tests/strings/strip_tags_variation10.phpt

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
--TEST--
22
Test strip_tags() function : usage variations - single quoted strings
3-
--INI--
4-
short_open_tag = on
53
--FILE--
64
<?php
75
/* Prototype : string strip_tags(string $str [, string $allowable_tags])
@@ -39,7 +37,6 @@ foreach($single_quote_string as $string_value)
3937
echo "Done";
4038
?>
4139
--EXPECT--
42-
Deprecated: Directive 'short_open_tag' is deprecated in Unknown on line 0
4340
*** Testing strip_tags() : usage variations ***
4441
-- Iteration 1 --
4542
string(51) "<html> \$ -> This represents the dollar sign</html>"

ext/standard/tests/strings/strip_tags_variation11.phpt

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
--TEST--
22
Test strip_tags() function : obscure values within attributes
3-
--INI--
4-
short_open_tag = on
53
--FILE--
64
<?php
75

@@ -29,7 +27,6 @@ foreach($string_array as $string)
2927
echo "Done";
3028
?>
3129
--EXPECT--
32-
Deprecated: Directive 'short_open_tag' is deprecated in Unknown on line 0
3330
*** Testing strip_tags() : obscure functionality ***
3431
-- Iteration 1 --
3532
string(12) "hello world"

ext/standard/tests/strings/strip_tags_variation2.phpt

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
--TEST--
22
Test strip_tags() function : usage variations - unexpected values for 'allowable_tags'
3-
--INI--
4-
short_open_tag = on
53
--FILE--
64
<?php
75
/* Prototype : string strip_tags(string $str [, string $allowable_tags])
@@ -86,7 +84,6 @@ foreach($values as $value) {
8684
echo "Done";
8785
?>
8886
--EXPECT--
89-
Deprecated: Directive 'short_open_tag' is deprecated in Unknown on line 0
9087
*** Testing strip_tags() : usage variations ***
9188
-- Iteration 1 --
9289
string(10) "helloworld"

ext/standard/tests/strings/strip_tags_variation4.phpt

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
--TEST--
22
Test strip_tags() function : usage variations - invalid values for 'str' and valid 'allowable_tags'
3-
--INI--
4-
short_open_tag = on
53
--FILE--
64
<?php
75
/* Prototype : string strip_tags(string $str [, string $allowable_tags])
@@ -46,7 +44,6 @@ foreach($strings as $string_value)
4644
echo "Done";
4745
?>
4846
--EXPECT--
49-
Deprecated: Directive 'short_open_tag' is deprecated in Unknown on line 0
5047
*** Testing strip_tags() : usage variations ***
5148
-- Iteration 1 --
5249
string(32) "hello world... strip_tags_test"

ext/standard/tests/strings/strip_tags_variation5.phpt

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
--TEST--
22
Test strip_tags() function : usage variations - heredoc strings
3-
--INI--
4-
short_open_tag = on
53
--FILE--
64
<?php
75
/* Prototype : string strip_tags(string $str [, string $allowable_tags])
@@ -78,7 +76,6 @@ for($index =0; $index < count($res_heredoc_strings); $index ++) {
7876
echo "Done\n";
7977
?>
8078
--EXPECT--
81-
Deprecated: Directive 'short_open_tag' is deprecated in Unknown on line 0
8279
*** Testing strip_tags() : usage variations ***
8380
-- Iteration 1 --
8481
string(0) ""
@@ -90,7 +87,8 @@ string(67) "<html>hello world</html>
9087

9188
This is a double quoted string"
9289
-- Iteration 4 --
93-
string(44) "<html>hello world
90+
string(44) "<html>hello
91+
world
9492
1111 != 2222 </html>
9593
"
9694
-- Iteration 5 --

ext/standard/tests/strings/strip_tags_variation6.phpt

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
--TEST--
22
Test strip_tags() function : usage variations - binary safe checking
3-
--INI--
4-
short_open_tag = on
53
--FILE--
64
<?php
75
/* Prototype : string strip_tags(string $str [, string $allowable_tags])
@@ -35,7 +33,6 @@ foreach($strings as $value)
3533
echo "Done";
3634
?>
3735
--EXPECT--
38-
Deprecated: Directive 'short_open_tag' is deprecated in Unknown on line 0
3936
*** Testing strip_tags() : usage variations ***
4037
-- Iteration 1 --
4138
string(18) " I am html string "

ext/standard/tests/strings/strip_tags_variation7.phpt

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
--TEST--
22
Test strip_tags() function : usage variations - invalid values for 'str' and 'allowable_tags'
3-
--INI--
4-
short_open_tag = on
53
--FILE--
64
<?php
75
/* Prototype : string strip_tags(string $str [, string $allowable_tags])
@@ -44,7 +42,6 @@ foreach($strings as $string_value)
4442
echo "Done";
4543
?>
4644
--EXPECT--
47-
Deprecated: Directive 'short_open_tag' is deprecated in Unknown on line 0
4845
*** Testing strip_tags() : usage variations ***
4946
-- Iteration 1 --
5047
string(43) "<abc>hello</abc> world... strip_tags_test"

ext/standard/tests/strings/strip_tags_variation8.phpt

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
--TEST--
22
Test strip_tags() function : usage variations - valid value for 'str' and invalid values for 'allowable_tags'
3-
--INI--
4-
short_open_tag = on
53
--FILE--
64
<?php
75
/* Prototype : string strip_tags(string $str [, string $allowable_tags])
@@ -39,7 +37,6 @@ foreach($quotes as $string_value)
3937

4038
echo "Done";
4139
--EXPECT--
42-
Deprecated: Directive 'short_open_tag' is deprecated in Unknown on line 0
4340
*** Testing strip_tags() : usage variations ***
4441
-- Iteration 1 --
4542
string(33) "hello world... strip_tags_test "

ext/standard/tests/strings/strip_tags_variation9.phpt

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
--TEST--
22
Test strip_tags() function : usage variations - double quoted strings
3-
--INI--
4-
short_open_tag = on
53
--FILE--
64
<?php
75
/* Prototype : string strip_tags(string $str [, string $allowable_tags])
@@ -37,19 +35,20 @@ foreach($double_quote_string as $string_value)
3735

3836
echo "Done";
3937
--EXPECT--
40-
Deprecated: Directive 'short_open_tag' is deprecated in Unknown on line 0
4138
*** Testing strip_tags() : usage variations ***
4239
-- Iteration 1 --
4340
string(50) "<html> $ -> This represents the dollar sign</html>"
4441
-- Iteration 2 --
45-
string(59) "<html> The quick brown fo x jumped over the lazy dog</p>"
42+
string(59) "<html>
43+
The quick brown fo x jumped over the lazy dog</p>"
4644
-- Iteration 3 --
4745
string(31) "<a>This is a hyper text tag</a>"
4846
-- Iteration 4 --
4947
string(0) ""
5048
-- Iteration 5 --
5149
string(26) "<p>This is a paragraph</p>"
5250
-- Iteration 6 --
53-
string(62) "<b>This is a text in bold letters\s\malong with slashes
51+
string(62) "<b>This is a text in bold letters
52+
\s\malong with slashes
5453
</b>"
5554
Done

0 commit comments

Comments
 (0)