From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from <gentoo-user+bounces-111985-garchives=archives.gentoo.org@lists.gentoo.org>) id 1ORKws-0001CJ-TK for garchives@archives.gentoo.org; Wed, 23 Jun 2010 08:04:43 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 8C54EE0B59 for <garchives@archives.gentoo.org>; Wed, 23 Jun 2010 08:04:42 +0000 (UTC) Received: from mail-ww0-f53.google.com (mail-ww0-f53.google.com [74.125.82.53]) by pigeon.gentoo.org (Postfix) with ESMTP id 3EAF9E09D8 for <gentoo-user@lists.gentoo.org>; Wed, 23 Jun 2010 07:15:17 +0000 (UTC) Received: by wwf26 with SMTP id 26so2931668wwf.40 for <gentoo-user@lists.gentoo.org>; Wed, 23 Jun 2010 00:15:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=o9m+r4CXBWN+ttR+d9l+dUFg5OU138UR7/obHn1U8/g=; b=VxZlsY0Pk+21p5pge9jC1fbzQt7qM3SMwxTAooBJ652Cj5lkbkaqfUfIXLxb1UnRTd uLQ2RsnTLv8iPN2gbXhivacSbhJqGxSswwkZuw6axZpqKNmWpNnT+al3FR3zt7wZrSLN ARzUxx3HwkxpHaruNRMYmdYqsMic8U4OwDSoI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=uVB+bMKYV0pDS67sfBzqn235RItAUh4/awx+UCUVzQR8tDzIagC1zvFeHbnsafdLgX NoqUMpoDbr55331L+Pxon8+/cQvgMsLrJldaX7sr+pTp+RQw0q8xLU0QnqyihuW5/+2O e8vmYVt8+vzTiNetQ/yDiZAHgIWMadTVFEO80= Precedence: bulk List-Post: <mailto:gentoo-user@lists.gentoo.org> List-Help: <mailto:gentoo-user+help@lists.gentoo.org> List-Unsubscribe: <mailto:gentoo-user+unsubscribe@lists.gentoo.org> List-Subscribe: <mailto:gentoo-user+subscribe@lists.gentoo.org> List-Id: Gentoo Linux mail <gentoo-user.gentoo.org> X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 Received: by 10.227.146.207 with SMTP id i15mr7074302wbv.214.1277277316506; Wed, 23 Jun 2010 00:15:16 -0700 (PDT) Received: by 10.216.162.71 with HTTP; Wed, 23 Jun 2010 00:15:16 -0700 (PDT) In-Reply-To: <AANLkTin7DSBYxSADgVuDHj3tqLVifOsb4GUrIqrzA4sP@mail.gmail.com> References: <AANLkTin7DSBYxSADgVuDHj3tqLVifOsb4GUrIqrzA4sP@mail.gmail.com> Date: Wed, 23 Jun 2010 08:15:16 +0100 Message-ID: <AANLkTildq0zOD06FBUJ8c6mufhxDiVABNxpxb6cTOiTE@mail.gmail.com> Subject: [gentoo-user] Re: reading php file code in text editor From: Mick <michaelkintzios@gmail.com> To: gentoo-user <gentoo-user@lists.gentoo.org> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Archives-Salt: 600b92b9-b8be-4c0a-af65-cdcc5e77d69c X-Archives-Hash: 390252b523250a17f3e517d44be6ba22 On 23 June 2010 07:18, Mick <michaelkintzios@gmail.com> wrote: > I am looking at some php files which are causing parsing errors in Drupal= , like: > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > 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 > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > 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? > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > =A0 =A0$dimensions =3D !empty($node->height) && !empty($node->width) && > !empty($node->length); =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 // Hide dimensions= if empty > =A0 =A0$vars['fusion_uc_dimensions'] =3D ($dimensions) ? > drupal_render($node->content['dimensions']) : ''; > =A0 =A0if ($vars['fusion_uc_dimensions'] =3D=3D '') { > =A0 =A0 =A0unset($node->content['dimensions']); > =A0 =A0} > =A0 =A0$list_price =3D !empty($node->list_price) && $node->list_price > 0= ; > =A0 =A0 ^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^= @^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@= ^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^= @^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@= ^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@ > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > > Another file that also gives the same parse error ends like this: > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > =A0 =A0 =A0if ($enabled_themes =3D=3D 0) { > =A0 =A0 =A0 =A0drupal_set_message(t('Skinr has detected that none of your > themes are enabled. This is likely related the Drupal bug: <a > href=3D"http://drupal.org/node/305653">Themes disabled during > update</a>. Please re-enable your theme to continue using Skinr.'), > 'warning', FALSE); > =A0 =A0 =A0} > > =A0 =A0 =A0// Only add submit handler once. > =A0 =A0 =A0eval('$element =3D& $form'. $form_settings['submit_handler_att= ach^@^@^@^@^@ > ^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^= @^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@= ^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^= @^@^@^@^@^@^@^@^@ > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > 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. I forgot, this are my flags on php Installed versions: 5.2.13(5)(15:29:45 27/03/10)(apache2 berkdb bzip2 cli crypt ctype gdbm iconv ldap mysql ncurses nls pcre readline reflection session spell spl ssl truetype unicode xml zlib -adabas -bcmath -birdstep -calendar -cdb -cgi -cjk -concurrentmodphp -curl -curlwrappers -db2 -dbase -dbmaker -debug -discard-path -doc -empress -empress-bcs -esoob -exif -fastbuild -fdftk -filter -firebird -flatfile -force-cgi-redirect -frontbase -ftp -gd -gd-external -gmp -hash -imap -inifile -interbase -iodbc -ipv6 -java-external -json -kerberos -kolab -ldap-sasl -libedit -mcve -mhash -msql -mssql -mysqli -oci8 -oci8-instant-client -odbc -pcntl -pdo -pic -posix -postgres -qdbm -recode -sapdb -sharedext -sharedmem -simplexml -snmp -soap -sockets -solid -sqlite -suhosin -sybase -sybase-ct -sysvipc -threads -tidy -tokenizer -wddx -xmlreader -xmlrpc -xmlwriter -xpm -xsl -yaz -zip) --=20 Regards, Mick