I found today that the version of drupal that we're using (v4.7.4) splits up the body of a page containing PHP for the teaser, though in code comments in './modules/node.module' says that it shouldn't. I'm not sure if this has already been caught or not. I searched around on the site, but was unable to find anything directly related to my problem.

I'm pretty sure that the problem stems from $delimeter being FALSE, and of course the position of '<?' in $body cannot be less than FALSE.

Anyway, I've attached my patch.

CommentFileSizeAuthor
#3 node_teaser_php_fix.patch765 bytescollin
php_node_fix_20061108.patch503 bytescollin
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

collin’s picture

I'm pretty sure that the problem stems from $delimeter being FALSE, and of course the position of '<?' cannot be less than FALSE.

collin’s picture

Project: Node Teaser » Drupal core
Version: 4.7.x-1.x-dev » 4.7.4
Component: Code » node.module
Priority: Critical » Normal

Changed issue information.

collin’s picture

FileSize
765 bytes

added patch...in correct format

killes@www.drop.org’s picture

Version: 4.7.4 » 5.x-dev

Moving to HEAD(?), need to be fixed there too.

drumm’s picture

Status: Needs review » Fixed

Committed to HEAD.

Anonymous’s picture

Status: Fixed » Closed (fixed)