1Trailing newlines in doc strings 2----- 3<?php 4 5<<<'EOF'@@{ "\n\n" }@@EOF; 6<<<'EOF'@@{ "\n\n\n" }@@EOF; 7<<<'EOF'@@{ "\nFoo\n\n" }@@EOF; 8<<<EOF@@{ "\n\$var\n\n" }@@EOF; 9 10<<<'EOF'@@{ "\r\n\r\n" }@@EOF; 11<<<'EOF'@@{ "\r\n\r\n\r\n" }@@EOF; 12<<<'EOF'@@{ "\r\nFoo\r\n\r\n" }@@EOF; 13<<<EOF@@{ "\r\n\$var\r\n\r\n" }@@EOF; 14 15----- 16array( 17 0: Stmt_Expression( 18 expr: Scalar_String( 19 value: 20 ) 21 ) 22 1: Stmt_Expression( 23 expr: Scalar_String( 24 value: 25 26 ) 27 ) 28 2: Stmt_Expression( 29 expr: Scalar_String( 30 value: Foo 31 32 ) 33 ) 34 3: Stmt_Expression( 35 expr: Scalar_InterpolatedString( 36 parts: array( 37 0: Expr_Variable( 38 name: var 39 ) 40 1: InterpolatedStringPart( 41 value: 42 43 ) 44 ) 45 ) 46 ) 47 4: Stmt_Expression( 48 expr: Scalar_String( 49 value: 50 ) 51 ) 52 5: Stmt_Expression( 53 expr: Scalar_String( 54 value: 55 56 ) 57 ) 58 6: Stmt_Expression( 59 expr: Scalar_String( 60 value: Foo 61 62 ) 63 ) 64 7: Stmt_Expression( 65 expr: Scalar_InterpolatedString( 66 parts: array( 67 0: Expr_Variable( 68 name: var 69 ) 70 1: InterpolatedStringPart( 71 value: 72 73 ) 74 ) 75 ) 76 ) 77) 78