Page MenuHomePhabricator

D8027.diff
No OneTemporary

D8027.diff

Index: src/parser/xhpast/__tests__/data/php-binary-literal.php.expect
===================================================================
--- /dev/null
+++ src/parser/xhpast/__tests__/data/php-binary-literal.php.expect
@@ -0,0 +1,47 @@
+{
+ "tree" : [
+ 9000,
+ 0,
+ 2,
+ [
+ [
+ 9006,
+ 0,
+ 2,
+ [
+ [
+ 9007,
+ 0,
+ 0
+ ],
+ [
+ 9004,
+ 1,
+ 2,
+ [
+ [
+ 9086,
+ 1,
+ 1
+ ]
+ ]
+ ]
+ ]
+ ]
+ ]
+ ],
+ "stream" : [
+ [
+ 371,
+ 6
+ ],
+ [
+ 307,
+ 4
+ ],
+ [
+ 59,
+ 1
+ ]
+ ]
+}
Index: src/parser/xhpast/__tests__/data/php-binary-literal.php.test
===================================================================
--- /dev/null
+++ src/parser/xhpast/__tests__/data/php-binary-literal.php.test
@@ -0,0 +1,2 @@
+# fail-syntax
+<?php 0b10;

File Metadata

Mime Type
text/plain
Expires
Sun, Sep 14, 1:31 PM (2 w, 3 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
8461963
Default Alt Text
D8027.diff (1 KB)

Event Timeline