We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b543511 commit bc926f2Copy full SHA for bc926f2
tests/issue0057.phpt
@@ -0,0 +1,38 @@
1
+--TEST--
2
+ISSUE #57 (segfaults in drupal7)
3
+--INI--
4
+zend_optimizerplus.enable=1
5
+zend_optimizerplus.enable_cli=1
6
+zend_optimizerplus.optimization_level=-1
7
+--SKIPIF--
8
+<?php require_once('skipif.inc'); ?>
9
+--FILE--
10
+<?php
11
+
12
+class ZException extends Exception {
13
+}
14
15
+function dummy($query) {
16
+ try {
17
+ switch ($query) {
18
+ case 1;
19
+ break;
20
+ case 2;
21
22
+ default:
23
+ throw new Exception('exception');
24
+ }
25
+ } catch (ZException $e) {
26
+ return NULL;
27
28
29
30
+try {
31
+ dummy(0);
32
+} catch (Exception $e) {
33
+ echo $e->getMessage();
34
35
36
+?>
37
+--EXPECT--
38
+exception
0 commit comments