Skip to content

Commit bac65c9

Browse files
committed
gen_stub: Add some escaped strings in the zend_test stub
1 parent b1e2fe2 commit bac65c9

4 files changed

Lines changed: 41 additions & 6 deletions

File tree

ext/zend_test/test.stub.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@
99
namespace {
1010
require "Zend/zend_attributes.stub.php";
1111

12+
13+
1214
/**
1315
* @var int
1416
* @deprecated
@@ -57,6 +59,11 @@ class _ZendTestClass implements _ZendTestInterface {
5759
public static $_StaticProp;
5860
public static int $staticIntProp = 123;
5961

62+
/* If there's a problem with escapes in quotes in generated headers,
63+
* the generated header won't compile. */
64+
public static string $doubleQuoteEscaped = "BEGIN \n\r\t\v\e\f\\\$\"\101\x41\u{41} END";
65+
public static string $singleQuoteEscaped = 'BEGIN \n\r\t\v\e\f\\\$\"\101\x41\u{41} END';
66+
6067
public int $intProp = 123;
6168
public ?stdClass $classProp = null;
6269
public stdClass|Iterator|null $classUnionProp = null;

ext/zend_test/test_arginfo.h

Lines changed: 15 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

ext/zend_test/test_decl.h

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

ext/zend_test/test_legacy_arginfo.h

Lines changed: 15 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)