Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F18152807
D8027.id.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D8027.id.diff
View Options
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
Details
Attached
Mime Type
text/plain
Expires
Aug 15 2025, 7:10 PM (6 w, 5 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
8461963
Default Alt Text
D8027.id.diff (1 KB)
Attached To
Mode
D8027: Add failing PHPAST test case for binary literals
Attached
Detach File
Event Timeline
Log In to Comment