File tree 2 files changed +15
-14
lines changed
2 files changed +15
-14
lines changed Original file line number Diff line number Diff line change
1
+ <?php
2
+
3
+ if (!class_exists ("constructs_in_destructor " )) {
4
+ class constructs_in_destructor {
5
+ public function __destruct () {
6
+ $ a = new constructs_in_destructor ;
7
+ $ time = '' ;
8
+ require (__FILE__ );
9
+ }
10
+ }
11
+ }
12
+
13
+ $ a = new constructs_in_destructor ;
Original file line number Diff line number Diff line change @@ -13,23 +13,11 @@ memory_limit=2G
13
13
<?php
14
14
15
15
try {
16
- if (!class_exists ("constructs_in_destructor " )) {
17
- class constructs_in_destructor {
18
- public function __destruct () {
19
- for ($ i = 0 ; $ i < 10000 ; ++$ i ) {
20
- $ a = new constructs_in_destructor ;
21
- $ time = '' ;
22
- require (__FILE__ );
23
- }
24
- }
25
- }
26
- }
27
-
28
- $ a = new constructs_in_destructor ;
16
+ require __DIR__ .'/stack_limit_013.inc ' ;
29
17
} catch (Error $ e ) {
30
18
echo $ e ->getMessage (), "\n" ;
31
19
}
32
20
33
21
?>
34
22
--EXPECTF--
35
- %SMaximum call stack size of %d bytes reached%s
23
+ %S%rMaximum call stack size of [0-9]+ bytes reached|Allowed memory size of [0-9]+ bytes exhausted%r %s
You can’t perform that action at this time.
0 commit comments