File tree Expand file tree Collapse file tree 3 files changed +14
-17
lines changed Expand file tree Collapse file tree 3 files changed +14
-17
lines changed Original file line number Diff line number Diff line change 2
2
Testing declare statement with several type values
3
3
--SKIPIF--
4
4
<?php
5
- if (!ini_get ("zend.multibyte " )) {
6
- die ("skip Requires zend.multibyte=1 " );
7
- }
8
5
if (!extension_loaded ("mbstring " )) {
9
6
die ("skip Requires ext/mbstring " );
10
7
}
11
8
?>
9
+ --INI--
10
+ zend.multibyte=1
12
11
--FILE--
13
12
<?php
14
13
15
14
declare (encoding = 1 );
16
15
declare (encoding = 1123131232131312321 );
17
- declare (encoding = NULL );
18
16
declare (encoding = 'utf-8 ' );
19
17
declare (encoding = M_PI );
20
18
@@ -26,6 +24,4 @@ Warning: Unsupported encoding [%d] in %sdeclare_002.php on line 3
26
24
27
25
Warning: Unsupported encoding [%f] in %sdeclare_002.php on line 4
28
26
29
- Warning: Unsupported encoding [] in %sdeclare_002.php on line 5
30
-
31
- Fatal error: Cannot use constants as encoding in %sdeclare_002.php on line 7
27
+ Fatal error: Encoding must be a literal in %sdeclare_002.php on line 6
Original file line number Diff line number Diff line change 1
1
--TEST--
2
2
Testing declare statement with several type values
3
- --SKIPIF--
4
- <?php
5
- if (!ini_get ("zend.multibyte " )) {
6
- die ("skip Requires zend.multibyte=1 " );
7
- }
8
- ?>
3
+ --INI--
4
+ zend.multibyte=1
9
5
--FILE--
10
6
<?php
11
7
12
8
declare (encoding = 1 );
13
9
declare (encoding = 1123131232131312321 );
14
- declare (encoding = NULL );
15
10
declare (encoding = M_PI );
16
11
17
12
print 'DONE ' ;
@@ -22,6 +17,4 @@ Warning: Unsupported encoding [%d] in %sdeclare_004.php on line 3
22
17
23
18
Warning: Unsupported encoding [%f] in %sdeclare_004.php on line 4
24
19
25
- Warning: Unsupported encoding [] in %sdeclare_004.php on line 5
26
-
27
- Fatal error: Cannot use constants as encoding in %sdeclare_004.php on line 6
20
+ Fatal error: Encoding must be a literal in %sdeclare_004.php on line 5
Original file line number Diff line number Diff line change
1
+ --TEST--
2
+ Accessing self::FOO outside a class
3
+ --FILE--
4
+ <?php
5
+ var_dump (self ::FOO );
6
+ ?>
7
+ --EXPECTF--
8
+ Fatal error: Cannot access self:: when no class scope is active in %s on line %d
You can’t perform that action at this time.
0 commit comments