Index: trunk/phase3/includes/parser/Preprocessor_HipHop.hphp |
— | — | @@ -444,7 +444,8 @@ |
445 | 445 | } elseif ( $found === 'line-end' ) { |
446 | 446 | $piece = $stack->getTop(); |
447 | 447 | // A heading must be open, otherwise \n wouldn't have been in the search list |
448 | | - assert( '$piece->open === "\n"' ); |
| 448 | + assert( $piece->open === "\n" ); // Passing the assert condition directly instead of string, as |
| 449 | + // HPHP /compiler/ chokes on strings when ASSERT_ACTIVE != 0. |
449 | 450 | $part = $piece->getCurrentPart(); |
450 | 451 | // Search back through the input to see if it has a proper close |
451 | 452 | // Do this using the reversed string since the other solutions (end anchor, etc.) are inefficient |