PHP book pages don't handle the <!--break--> tag well. If you include it in the middle of a print statement, the full version displays properly, but the php code print "your string appears in the teaser. If you put some text before the php code end it with the <!--break--> and then start your php the teaser displays correctly but you get a parse error on the full version.

Comments

dries’s picture

PHP book pages don't handle <!--break--> tags at all. This is by design.

(It looks like you might have discovered a bug though so this needs further investigation.)

Kjartan’s picture

Upgrade to the latest Drupal release and re-open if problem still exists.