Guest User

Untitled

a guest
May 1st, 2016
45
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.31 KB | None | 0 0
  1. PHP Parse error: syntax error, unexpected '{' in index.php on line 20
  2.  
  3. <?php
  4. error_reporting(E_ALL);
  5. ini_set("display_errors", 1);
  6. include("./broken-script.php");
  7.  
  8. $php53 = array(1, 2, 3);
  9. $php54 = [1, 2, 3];
  10.  
  11. $result = get_whatever()["key"];
  12.  
  13. protected $var["x"] = "Nope";
  14.  
  15. foreach [$a as $b)
  16.  
  17. function foobar[$a, $b, $c] {
  18.  
  19. $var = const[123];
  20.  
  21. function foobar($a, $b, $c] {
  22.  
  23. $var = 2];
  24.  
  25. $array = [1,[2,3],4,[5,6[7,[8],[9,10]],11],12]],15];
  26.  
  27. ⇓ ⇓
  28. echo "Here comes a $wrong['array'] access";
  29.  
  30. echo "This is only $valid[here] ...";
  31.  
  32. echo "Use {$array['as_usual']} with curly syntax.";
  33.  
  34. print "Hello " . WORLD " !";
  35.  
  36. print "<a href="' . $link . '">click here</a>";
  37. ⌞⎽⎽⎽⎽⎽⎽⎽⎽⌟⌞⎽⎽⎽⎽⎽⎽⎽⎽⎽⎽⎽⌟⌞⎽⎽⎽⎽⎽⎽⎽⎽⎽⎽⎽⎽⎽⎽⎽⌟
  38.  
  39. print "<a href="{$link}">click here</a>";
  40.  
  41. make_url(login', 'open');
  42.  
  43. array( ⇓
  44. "key" => "value"
  45. "next" => "....",
  46. );
  47.  
  48. myfunc(123, "text", "and" "more")
  49.  
  50. mysql_evil("SELECT * FROM stuffs);
  51. print "'ok'";
  52.  
  53. func1()
  54. $var = 1 + 2; # parse error in line +2
  55.  
  56. print "Here comes the value: " $value;
  57.  
  58. print 4 + 7 $var;
  59.  
  60. $var = array("1" => $val, $val2, $val3 $val4);
  61.  
  62. function myfunc($param1, $param2 $param3, $param4)
  63.  
  64. class xyz { ⇓
  65. var $value = $_GET["input"];
  66.  
  67. $this->myFunc$VAR();
  68.  
  69. foreach $array as $key) {
  70.  
  71. function header_fallback($value, $expires = time() + 90000) {
  72.  
  73. class xyz { ⇓
  74. var $default = get_config("xyz_default");
  75.  
  76. <?php ⇓
  77. print $(document).text();
  78.  
  79. if (isset(($_GET["id"]))) {
  80.  
  81. callfunc(1, 2, );
  82.  
  83. $var = 2 * (1 + );
  84.  
  85. ↓ ⇓
  86. foreach ($array as wrong) {
  87.  
  88. if (($x == $y) && (2 == true) {
  89.  
  90. $var = 5 * {7 + $x};
  91.  
  92. print "Hello {$world[2{]} !";
  93.  
  94. function whatever() {
  95. doStuff()
  96. } ⇧
  97.  
  98. function doStuff() {
  99. if (true) ⇦
  100. print "yes";
  101. }
  102. } ⇧
  103.  
  104. function whatever {
  105. }
  106.  
  107. if {
  108. }
  109.  
  110. ⇓ ⇓
  111. echo "<a href="http://example.com">click here</a>";
  112.  
  113. echo "Some text", $a_variable, "and some runaway string ;
  114. success("finished");
  115.  
  116. $text = ’Something something..’ + ”these ain't quotes”;
  117.  
  118. func1()
  119. function2();
  120.  
  121. <?xml version="1.0"?>
  122.  
  123. <?php
  124. print 123;
  125.  
  126. <?php
  127. ;print 123;
  128.  
  129. print <<< END
  130. Content...
  131. Content....
  132. END;
  133. # ↑ terminator isn't exactly at the line start
  134.  
  135. if (($foo < 7) && $bar) > 5 || $baz < 9) { ... }
  136.  
  137. if (empty($_POST["var"] == 1)) {
  138.  
  139. if (isset($variable !== "value")) {
  140.  
  141. if ($var => 5) { ... }
  142.  
  143. if ($xyz > 5 and < 100)
  144.  
  145. $reult = (5 < $x < 10);
  146.  
  147. print "<a href='z">Hello</a>";
  148.  
  149. $x = myfunc()
  150. if (true) {
  151.  
  152. class xyz {
  153. if (true) {}
  154. foreach ($var) {}
  155.  
  156. $var = array(1, 2, foreach($else as $_), 5, 6);
  157.  
  158. print "Oh, " . if (true) { "you!" } . " won't work";
  159. // Use a ternary condition here instead, when versed enough.
  160.  
  161. echo 123, echo 567, "huh?";
Add Comment
Please, Sign In to add comment