Mick wrote: >> On 23 June 2010 13:48, <roun...@hotmail.ru> wrote: >> > Stroller wrote: >> > >> >>> On 23 Jun 2010, at 07:18, Mick wrote: >> >>> >> >>> > I am looking at some php files which are causing parsing errors in >> >>> > Drupal, like: >> >> > @^...@^@^...@^@^...@^@^...@^@^...@^@^...@^@^...@^@^...@^@^...@^@^...@^@^@ >> > See this line here with all the ^@, delete it, or better yet comment it >> > out, and see if it runs the same, it is not part of the php file, so >> > maybe it was dumped during a refactoring session or the like. >> >> Thanks guys, >> >> I've tried all sort of 'fixes' like trying to add escape characters, >> using closing tags, completely deleting the null symbols and what not, >> but loading the page in drupal still causes similar parsing errors >> although not always at the last line. >> >> The files in question are attached in this message. >> >> When looking at them with a hex editor I see this: >> >> 000027b0 20 7d 0d 0a 20 20 20 20 24 6c 69 73 74 5f 70 72 | }.. >> $list_pr| >> 000027c0 69 63 65 20 3d 20 21 65 6d 70 74 79 28 24 6e 6f |ice = >> !empty($no| >> 000027d0 64 65 2d 3e 6c 69 73 74 5f 70 72 69 63 65 29 20 |de->list_price) >> | >> 000027e0 26 26 20 24 6e 6f 64 65 2d 3e 6c 69 73 74 5f 70 |&& >> $node->list_p| >> 000027f0 72 69 63 65 20 3e 20 30 3b 20 20 20 20 20 20 20 |rice > 0; >> | >> 00002800 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >> |................| >> * >> 00006170 00 00 00 00 00 00 00 00 |........| >> 00006178 >> >> It is the last 5 lines that seem to cause the problem. Any idea why >> they are shown as binary in text editors (using vim, or less)? >> >> PS. I just looked at earlier (stable) versions of these files here: >> >> http://drupal.org/project/skinr >> >> and here: >> >> http://drupal.org/project/fusion >> >> and they do not have the binary characters at the end - so this could >> well be a problem with the development versions. I'll try the stable >> versions when I get home and report back.
You could use split to chop of the last 5 lines.... -- Regards, Roundyz