public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] reading php file code in text editor
@ 2010-06-23  6:18 Mick
  2010-06-23  7:15 ` [gentoo-user] " Mick
  2010-06-23 11:24 ` [gentoo-user] " Stroller
  0 siblings, 2 replies; 9+ messages in thread
From: Mick @ 2010-06-23  6:18 UTC (permalink / raw
  To: gentoo-user

I am looking at some php files which are causing parsing errors in Drupal, like:
=============================================
Warning: Unexpected character in input: ' in
/var/www/htdocs/sites/all/themes/fusion/fusion_core/template.php on
line 178
Warning: Unexpected character in input: ' in
/var/www/htdocs/sites/all/themes/fusion/fusion_core/template.php on
line 178
Warning: Unexpected character in input: ' in
/var/www/htdocs/sites/all/themes/fusion/fusion_core/template.php on
line 178
=============================================
and so on.

When I view the file using a text editor I see a number of lines which
are shown as binary characters ... should it be like this?
=============================================
    $dimensions = !empty($node->height) && !empty($node->width) &&
!empty($node->length);                 // Hide dimensions if empty
    $vars['fusion_uc_dimensions'] = ($dimensions) ?
drupal_render($node->content['dimensions']) : '';
    if ($vars['fusion_uc_dimensions'] == '') {
      unset($node->content['dimensions']);
    }
    $list_price = !empty($node->list_price) && $node->list_price > 0;
     ^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@
=============================================

Another file that also gives the same parse error ends like this:
=============================================
      if ($enabled_themes == 0) {
        drupal_set_message(t('Skinr has detected that none of your
themes are enabled. This is likely related the Drupal bug: <a
href="http://drupal.org/node/305653">Themes disabled during
update</a>. Please re-enable your theme to continue using Skinr.'),
'warning', FALSE);
      }

      // Only add submit handler once.
      eval('$element =& $form'. $form_settings['submit_handler_attach^@^@^@^@^@
^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@
=============================================
Is this caused by some php escape character error in these files, am I
missing some USE flag on my php package, or is there something else
wrong?

BTW, what I'd rather fix is the error reported on the last lines,
although I am interested as to why php files show this binary string
at the end.
-- 
Regards,
Mick



^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2010-06-23 21:04 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-06-23  6:18 [gentoo-user] reading php file code in text editor Mick
2010-06-23  7:15 ` [gentoo-user] " Mick
2010-06-23 11:24 ` [gentoo-user] " Stroller
2010-06-23 12:48   ` roundyz
2010-06-23 12:22     ` Mick
2010-06-23 14:08       ` Stroller
2010-06-23 14:26       ` roundyz
2010-06-23 20:06       ` Vincent Launchbury
2010-06-23 20:39         ` Mick

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox