php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #67714 heredoc ends in Parse error
Submitted: 2014-07-30 11:32 UTC Modified: 2014-07-30 15:32 UTC
From: xenoist+php at midlandgate dot de Assigned:
Status: Not a bug Package: *General Issues
PHP Version: 5.5.15 OS: x86_64 gentoo hardened
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: xenoist+php at midlandgate dot de
New email:
PHP Version: OS:

 

 [2014-07-30 11:32 UTC] xenoist+php at midlandgate dot de
Description:
------------
<?php
$red=<<<red
<span style="color: #FF0000; background-color: #FFFFFF ">;
red;
?>

Worked with dev-lang/php-5.5.14.

Expected result:
----------------
No Parse error.


Actual result:
--------------
Parse error: syntax error, unexpected '<<<red' in /var/www/test.php on line 2

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2014-07-30 15:32 UTC] rasmus@php.net
-Status: Open +Status: Not a bug
 [2014-07-30 15:32 UTC] rasmus@php.net
Unable to reproduce. Check for weird characters in your file using od or something. Nothing has changed in PHP that would affect this.

See:

http://3v4l.org/eIJ0B
 [2014-07-31 15:29 UTC] stefan dot staudenmeyer at csiweb dot de
https://getcomposer.org/installer << line 124 fails here as well. 

Running ~amd64 latest dev-lang/php-5.5.15::gentoo from plain portage.

Useflags: 
bzip2 calendar cjk cli crypt ctype curl exif fileinfo filter gd gdbm hash iconv inifile intl ipv6 json nls opcache phar posix readline session simplexml sockets spell ssl tokenizer truetype unicode xml xmlreader xmlrpc xmlwriter xslt zip zlib -apache2 -bcmath -berkdb -cdb -cgi -debug -embed -enchant -firebird -flatfile -fpm -frontbase -ftp -gmp -imap -iodbc -kerberos -ldap -ldap-sasl -libedit -libmysqlclient -mhash -mssql -mysql -mysqli -oci8-instant-client -odbc -pcntl -pdo -postgres -qdbm -recode -selinux -sharedmem -snmp -soap -sqlite -sybase-ct -systemd -sysvipc -threads -tidy -wddx -xpm

php -v
PHP 5.5.15-pl0-gentoo (cli) (built: Jul 31 2014 17:20:17) 
Copyright (c) 1997-2014 The PHP Group
Zend Engine v2.5.0, Copyright (c) 1998-2014 Zend Technologies
    with Zend OPcache v7.0.4-dev, Copyright (c) 1999-2014, by Zend Technologies

php -i 
phpinfo()
PHP Version => 5.5.15-pl0-gentoo

System => Linux trolovo 3.15.7-gentoo #1 SMP Wed Jul 30 20:24:23 CEST 2014 x86_64
Build Date => Jul 31 2014 17:19:57
Configure Command =>  './configure'  '--prefix=/usr' '--build=x86_64-pc-linux-gnu' '--host=x86_64-pc-linux-gnu' '--mandir=/usr/share/man' '--infodir=/usr/share/info' '--datadir=/usr/share' '--sysconfdir=/etc' '--localstatedir=/var/lib' '--prefix=/usr/lib64/php5.5' '--mandir=/usr/lib64/php5.5/man' '--infodir=/usr/lib64/php5.5/info' '--libdir=/usr/lib64/php5.5/lib' '--with-libdir=lib64' '--without-pear' '--disable-maintainer-zts' '--disable-bcmath' '--with-bz2=/usr' '--enable-calendar' '--enable-ctype' '--with-curl=/usr' '--enable-dom' '--without-enchant' '--enable-exif' '--enable-fileinfo' '--enable-filter' '--disable-ftp' '--with-gettext=/usr' '--without-gmp' '--enable-hash' '--without-mhash' '--with-iconv' '--enable-intl' '--enable-ipv6' '--enable-json' '--without-kerberos' '--enable-libxml' '--with-libxml-dir=/usr' '--enable-mbstring' '--with-mcrypt=/usr' '--without-mssql' '--with-onig=/usr' '--with-openssl=/usr' '--with-openssl-dir=/usr' '--disable-pcntl' '--enable-phar' '--disable-pdo' '--enable-opcache' '--without-pgsql' '--enable-posix' '--with-pspell=/usr' '--without-recode' '--enable-simplexml' '--disable-shmop' '--without-snmp' '--disable-soap' '--enable-sockets' '--without-sqlite3' '--without-sybase-ct' '--disable-sysvmsg' '--disable-sysvsem' '--disable-sysvshm' '--without-fpm-systemd' '--without-tidy' '--enable-tokenizer' '--disable-wddx' '--enable-xml' '--enable-xmlreader' '--enable-xmlwriter' '--with-xmlrpc' '--with-xsl=/usr' '--enable-zip' '--with-zlib=/usr' '--disable-debug' '--enable-dba' '--without-cdb' '--without-db4' '--disable-flatfile' '--with-gdbm=/usr' '--enable-inifile' '--without-qdbm' '--with-freetype-dir=/usr' '--with-t1lib=/usr' '--enable-gd-jis-conv' '--with-jpeg-dir=/usr' '--with-png-dir=/usr' '--without-xpm-dir' '--with-gd' '--without-mysql' '--without-mysqli' '--with-readline=/usr' '--without-libedit' '--without-mm' '--with-pic' '--with-pcre-regex=/usr' '--with-pcre-dir=/usr' '--with-config-file-path=/etc/php/cli-php5.5' '--with-config-file-scan-dir=/etc/php/cli-php5.5/ext-active' '--disable-embed' '--enable-cli' '--disable-cgi' '--disable-fpm' '--without-apxs2'
Server API => Command Line Interface
Virtual Directory Support => disabled
Configuration File (php.ini) Path => /etc/php/cli-php5.5
Loaded Configuration File => /etc/php/cli-php5.5/php.ini
Scan this dir for additional .ini files => /etc/php/cli-php5.5/ext-active
Additional .ini files parsed => /etc/php/cli-php5.5/ext-active/opcache.ini

PHP API => 20121113
PHP Extension => 20121212
Zend Extension => 220121212
Zend Extension Build => API220121212,NTS
PHP Extension Build => API20121212,NTS
Debug Build => no
Thread Safety => disabled
Zend Signal Handling => disabled
Zend Memory Manager => enabled
Zend Multibyte Support => provided by mbstring
IPv6 Support => enabled
DTrace Support => disabled

Registered PHP Streams => https, ftps, compress.zlib, compress.bzip2, php, file, glob, data, http, ftp, phar, zip
Registered Stream Socket Transports => tcp, udp, unix, udg, ssl, sslv3, sslv2, tls
Registered Stream Filters => zlib.*, bzip2.*, convert.iconv.*, mcrypt.*, mdecrypt.*, string.rot13, string.toupper, string.tolower, string.strip_tags, convert.*, consumed, dechunk

This program makes use of the Zend Scripting Language Engine:
Zend Engine v2.5.0, Copyright (c) 1998-2014 Zend Technologies
    with Zend OPcache v7.0.4-dev, Copyright (c) 1999-2014, by Zend Technologies


 _______________________________________________________________________


Configuration

bz2

BZip2 Support => Enabled
Stream Wrapper support => compress.bzip2://
Stream Filter support => bzip2.decompress, bzip2.compress
BZip2 Version => 1.0.6, 6-Sept-2010

calendar

Calendar support => enabled

Core

PHP Version => 5.5.15-pl0-gentoo

Directive => Local Value => Master Value
allow_url_fopen => On => On
allow_url_include => Off => Off
always_populate_raw_post_data => Off => Off
arg_separator.input => & => &
arg_separator.output => & => &
asp_tags => Off => Off
auto_append_file => no value => no value
auto_globals_jit => On => On
auto_prepend_file => no value => no value
browscap => no value => no value
default_charset => no value => no value
default_mimetype => text/html => text/html
disable_classes => no value => no value
disable_functions => no value => no value
display_errors => Off => Off
display_startup_errors => Off => Off
doc_root => no value => no value
docref_ext => no value => no value
docref_root => no value => no value
enable_dl => Off => Off
enable_post_data_reading => On => On
error_append_string => no value => no value
error_log => no value => no value
error_prepend_string => no value => no value
error_reporting => 22527 => 22527
exit_on_timeout => Off => Off
expose_php => On => On
extension_dir => /usr/lib64/php5.5/lib/extensions/no-debug-non-zts-20121212 => /usr/lib64/php5.5/lib/extensions/no-debug-non-zts-20121212
file_uploads => On => On
highlight.comment => <font style="color: #FF8000">#FF8000</font> => <font style="color: #FF8000">#FF8000</font>
highlight.default => <font style="color: #0000BB">#0000BB</font> => <font style="color: #0000BB">#0000BB</font>
highlight.html => <font style="color: #000000">#000000</font> => <font style="color: #000000">#000000</font>
highlight.keyword => <font style="color: #007700">#007700</font> => <font style="color: #007700">#007700</font>
highlight.string => <font style="color: #DD0000">#DD0000</font> => <font style="color: #DD0000">#DD0000</font>
html_errors => Off => Off
ignore_repeated_errors => Off => Off
ignore_repeated_source => Off => Off
ignore_user_abort => Off => Off
implicit_flush => On => On
include_path => .:/usr/share/php5:/usr/share/php => .:/usr/share/php5:/usr/share/php
log_errors => On => On
log_errors_max_len => 1024 => 1024
mail.add_x_header => On => On
mail.force_extra_parameters => no value => no value
mail.log => no value => no value
max_execution_time => 0 => 0
max_file_uploads => 20 => 20
max_input_nesting_level => 64 => 64
max_input_time => -1 => -1
max_input_vars => 1000 => 1000
memory_limit => 128M => 128M
open_basedir => no value => no value
output_buffering => 0 => 0
output_handler => no value => no value
post_max_size => 8M => 8M
precision => 14 => 14
realpath_cache_size => 16K => 16K
realpath_cache_ttl => 120 => 120
register_argc_argv => On => On
report_memleaks => On => On
report_zend_debug => Off => Off
request_order => GP => GP
sendmail_from => no value => no value
sendmail_path => /usr/sbin/sendmail -t -i  => /usr/sbin/sendmail -t -i 
serialize_precision => 17 => 17
short_open_tag => Off => Off
SMTP => localhost => localhost
smtp_port => 25 => 25
sql.safe_mode => Off => Off
sys_temp_dir => no value => no value
track_errors => Off => Off
unserialize_callback_func => no value => no value
upload_max_filesize => 2M => 2M
upload_tmp_dir => no value => no value
user_dir => no value => no value
user_ini.cache_ttl => 300 => 300
user_ini.filename => .user.ini => .user.ini
variables_order => GPCS => GPCS
xmlrpc_error_number => 0 => 0
xmlrpc_errors => Off => Off
zend.detect_unicode => On => On
zend.enable_gc => On => On
zend.multibyte => Off => Off
zend.script_encoding => no value => no value

ctype

ctype functions => enabled

curl

cURL support => enabled
cURL Information => 7.37.1
Age => 3
Features
AsynchDNS => No
CharConv => No
Debug => No
GSS-Negotiate => No
IDN => No
IPv6 => Yes
krb4 => No
Largefile => Yes
libz => Yes
NTLM => Yes
NTLMWB => Yes
SPNEGO => No
SSL => Yes
SSPI => No
TLS-SRP => Yes
Protocols => dict, file, ftp, ftps, gopher, http, https, imap, imaps, ldap, ldaps, pop3, pop3s, rtsp, smtp, smtps, telnet, tftp
Host => x86_64-pc-linux-gnu
SSL Version => OpenSSL/1.0.1h
ZLib Version => 1.2.8

date

date/time support => enabled
"Olson" Timezone Database Version => 2014.5
Timezone Database => internal
Default timezone => Europe/Berlin

Directive => Local Value => Master Value
date.default_latitude => 31.7667 => 31.7667
date.default_longitude => 35.2333 => 35.2333
date.sunrise_zenith => 90.583333 => 90.583333
date.sunset_zenith => 90.583333 => 90.583333
date.timezone => Europe/Berlin => Europe/Berlin

dba

DBA support => enabled
Supported handlers => gdbm inifile 

Directive => Local Value => Master Value
dba.default_handler => gdbm => gdbm

dom

DOM/XML => enabled
DOM/XML API Version => 20031129
libxml Version => 2.9.1
HTML Support => enabled
XPath Support => enabled
XPointer Support => enabled
Schema Support => enabled
RelaxNG Support => enabled

ereg

Regex Library => Bundled library enabled

exif

EXIF Support => enabled
EXIF Version => 1.4 $Id$
Supported EXIF Version => 0220
Supported filetypes => JPEG,TIFF

Directive => Local Value => Master Value
exif.decode_jis_intel => JIS => JIS
exif.decode_jis_motorola => JIS => JIS
exif.decode_unicode_intel => UCS-2LE => UCS-2LE
exif.decode_unicode_motorola => UCS-2BE => UCS-2BE
exif.encode_jis => no value => no value
exif.encode_unicode => ISO-8859-15 => ISO-8859-15

fileinfo

fileinfo support => enabled
version => 1.0.5

filter

Input Validation and Filtering => enabled
Revision => $Id: 4d3899e089e6e45b157975ceef2ac7deb6e9d762 $

Directive => Local Value => Master Value
filter.default => unsafe_raw => unsafe_raw
filter.default_flags => no value => no value

gd

GD Support => enabled
GD Version => bundled (2.1.0 compatible)
FreeType Support => enabled
FreeType Linkage => with freetype
FreeType Version => 2.5.3
T1Lib Support => enabled
GIF Read Support => enabled
GIF Create Support => enabled
JPEG Support => enabled
libJPEG Version => 6b
PNG Support => enabled
libPNG Version => 1.6.12
WBMP Support => enabled
XBM Support => enabled
JIS-mapped Japanese Font Support => enabled

Directive => Local Value => Master Value
gd.jpeg_ignore_warning => 0 => 0

gettext

GetText Support => enabled

hash

hash support => enabled
Hashing Engines => md2 md4 md5 sha1 sha224 sha256 sha384 sha512 ripemd128 ripemd160 ripemd256 ripemd320 whirlpool tiger128,3 tiger160,3 tiger192,3 tiger128,4 tiger160,4 tiger192,4 snefru snefru256 gost adler32 crc32 crc32b fnv132 fnv164 joaat haval128,3 haval160,3 haval192,3 haval224,3 haval256,3 haval128,4 haval160,4 haval192,4 haval224,4 haval256,4 haval128,5 haval160,5 haval192,5 haval224,5 haval256,5 

iconv

iconv support => enabled
iconv implementation => glibc
iconv library version => 2.19

Directive => Local Value => Master Value
iconv.input_encoding => ISO-8859-1 => ISO-8859-1
iconv.internal_encoding => ISO-8859-1 => ISO-8859-1
iconv.output_encoding => ISO-8859-1 => ISO-8859-1

intl

Internationalization support => enabled
version => 1.1.0
ICU version => 52.1
ICU Data version => 52.1

Directive => Local Value => Master Value
intl.default_locale => no value => no value
intl.error_level => 0 => 0
intl.use_exceptions => 0 => 0

json

json support => enabled
json version => 1.2.1

libxml

libXML support => active
libXML Compiled Version => 2.9.1
libXML Loaded Version => 20901
libXML streams => enabled

mbstring

Multibyte Support => enabled
Multibyte string engine => libmbfl
HTTP input encoding translation => disabled
libmbfl version => 1.3.2

mbstring extension makes use of "streamable kanji code filter and converter", which is distributed under the GNU Lesser General Public License version 2.1.

Multibyte (japanese) regex support => enabled
Multibyte regex (oniguruma) version => 5.9.5

Directive => Local Value => Master Value
mbstring.detect_order => no value => no value
mbstring.encoding_translation => Off => Off
mbstring.func_overload => 0 => 0
mbstring.http_input => pass => pass
mbstring.http_output => pass => pass
mbstring.http_output_conv_mimetypes => ^(text/|application/xhtml\+xml) => ^(text/|application/xhtml\+xml)
mbstring.internal_encoding => no value => no value
mbstring.language => neutral => neutral
mbstring.strict_detection => Off => Off
mbstring.substitute_character => no value => no value

mcrypt

mcrypt support => enabled
mcrypt_filter support => enabled
Version => 2.5.8
Api No => 20021217
Supported ciphers => cast-128 gost rijndael-128 twofish arcfour cast-256 loki97 rijndael-192 saferplus wake blowfish-compat des rijndael-256 serpent xtea blowfish enigma rc2 tripledes 
Supported modes => cbc cfb ctr ecb ncfb nofb ofb stream 

Directive => Local Value => Master Value
mcrypt.algorithms_dir => no value => no value
mcrypt.modes_dir => no value => no value

openssl

OpenSSL support => enabled
OpenSSL Library Version => OpenSSL 1.0.1h 5 Jun 2014
OpenSSL Header Version => OpenSSL 1.0.1h 5 Jun 2014

pcre

PCRE (Perl Compatible Regular Expressions) Support => enabled
PCRE Library Version => 8.35 2014-04-04

Directive => Local Value => Master Value
pcre.backtrack_limit => 1000000 => 1000000
pcre.recursion_limit => 100000 => 100000

Phar

Phar: PHP Archive support => enabled
Phar EXT version => 2.0.2
Phar API version => 1.1.1
SVN revision => $Id: a5488937a80433d434af6753d3db8517feaf91df $
Phar-based phar archives => enabled
Tar-based phar archives => enabled
ZIP-based phar archives => enabled
gzip compression => enabled
bzip2 compression => enabled
OpenSSL support => enabled


Phar based on pear/PHP_Archive, original concept by Davey Shafik.
Phar fully realized by Gregory Beaver and Marcus Boerger.
Portions of tar implementation Copyright (c) 2003-2009 Tim Kientzle.
Directive => Local Value => Master Value
phar.cache_list => no value => no value
phar.readonly => On => On
phar.require_hash => On => On

posix

Revision => $Id: 1dfa9997ed76804e53c91e0ce862f3707617b6ed $

pspell

PSpell Support => enabled

readline

Readline Support => enabled
Readline library => 6.3

Directive => Local Value => Master Value
cli.pager => no value => no value
cli.prompt => \b \>  => \b \> 

Reflection

Reflection => enabled
Version => $Id: 31d836a7ac92a37b5c580836d91ad4736fe2f376 $

session

Session Support => enabled
Registered save handlers => files user 
Registered serializer handlers => php_serialize php php_binary 

Directive => Local Value => Master Value
session.auto_start => Off => Off
session.cache_expire => 180 => 180
session.cache_limiter => nocache => nocache
session.cookie_domain => no value => no value
session.cookie_httponly => Off => Off
session.cookie_lifetime => 0 => 0
session.cookie_path => / => /
session.cookie_secure => Off => Off
session.entropy_file => /dev/urandom => /dev/urandom
session.entropy_length => 32 => 32
session.gc_divisor => 1000 => 1000
session.gc_maxlifetime => 1440 => 1440
session.gc_probability => 1 => 1
session.hash_bits_per_character => 5 => 5
session.hash_function => 0 => 0
session.name => PHPSESSID => PHPSESSID
session.referer_check => no value => no value
session.save_handler => files => files
session.save_path => /tmp => /tmp
session.serialize_handler => php => php
session.upload_progress.cleanup => On => On
session.upload_progress.enabled => On => On
session.upload_progress.freq => 1% => 1%
session.upload_progress.min_freq => 1 => 1
session.upload_progress.name => PHP_SESSION_UPLOAD_PROGRESS => PHP_SESSION_UPLOAD_PROGRESS
session.upload_progress.prefix => upload_progress_ => upload_progress_
session.use_cookies => On => On
session.use_only_cookies => On => On
session.use_strict_mode => Off => Off
session.use_trans_sid => 0 => 0

SimpleXML

Simplexml support => enabled
Revision => $Id: a915862ec47f9589309acc4996ca8f6179788746 $
Schema support => enabled

sockets

Sockets Support => enabled

SPL

SPL support => enabled
Interfaces => Countable, OuterIterator, RecursiveIterator, SeekableIterator, SplObserver, SplSubject
Classes => AppendIterator, ArrayIterator, ArrayObject, BadFunctionCallException, BadMethodCallException, CachingIterator, CallbackFilterIterator, DirectoryIterator, DomainException, EmptyIterator, FilesystemIterator, FilterIterator, GlobIterator, InfiniteIterator, InvalidArgumentException, IteratorIterator, LengthException, LimitIterator, LogicException, MultipleIterator, NoRewindIterator, OutOfBoundsException, OutOfRangeException, OverflowException, ParentIterator, RangeException, RecursiveArrayIterator, RecursiveCachingIterator, RecursiveCallbackFilterIterator, RecursiveDirectoryIterator, RecursiveFilterIterator, RecursiveIteratorIterator, RecursiveRegexIterator, RecursiveTreeIterator, RegexIterator, RuntimeException, SplDoublyLinkedList, SplFileInfo, SplFileObject, SplFixedArray, SplHeap, SplMinHeap, SplMaxHeap, SplObjectStorage, SplPriorityQueue, SplQueue, SplStack, SplTempFileObject, UnderflowException, UnexpectedValueException

standard

Dynamic Library Support => enabled
Path to sendmail => /usr/sbin/sendmail -t -i 

Directive => Local Value => Master Value
assert.active => 1 => 1
assert.bail => 0 => 0
assert.callback => no value => no value
assert.quiet_eval => 0 => 0
assert.warning => 1 => 1
auto_detect_line_endings => 0 => 0
default_socket_timeout => 60 => 60
from => no value => no value
url_rewriter.tags => a=href,area=href,frame=src,input=src,form=fakeentry => a=href,area=href,frame=src,input=src,form=fakeentry
user_agent => no value => no value

tokenizer

Tokenizer Support => enabled

xml

XML Support => active
XML Namespace Support => active
libxml2 Version => 2.9.1

xmlreader

XMLReader => enabled

xmlrpc

core library version => xmlrpc-epi v. 0.51
php extension version => 0.51
author => Dan Libby
homepage => http://xmlrpc-epi.sourceforge.net
open sourced by => Epinions.com

xmlwriter

XMLWriter => enabled

xsl

XSL => enabled
libxslt Version => 1.1.28
libxslt compiled against libxml Version => 2.9.1
EXSLT => enabled
libexslt Version => 1.1.28

Zend OPcache

Opcode Caching => Disabled
Optimization => Disabled
Startup Failed => Opcode Caching is disabled for CLI

Directive => Local Value => Master Value
opcache.blacklist_filename => no value => no value
opcache.consistency_checks => 0 => 0
opcache.dups_fix => Off => Off
opcache.enable => On => On
opcache.enable_cli => Off => Off
opcache.enable_file_override => Off => Off
opcache.error_log => no value => no value
opcache.fast_shutdown => 0 => 0
opcache.file_update_protection => 2 => 2
opcache.force_restart_timeout => 180 => 180
opcache.inherited_hack => On => On
opcache.interned_strings_buffer => 4 => 4
opcache.load_comments => 1 => 1
opcache.log_verbosity_level => 1 => 1
opcache.max_accelerated_files => 2000 => 2000
opcache.max_file_size => 0 => 0
opcache.max_wasted_percentage => 5 => 5
opcache.memory_consumption => 64 => 64
opcache.optimization_level => 0xFFFFFFFF => 0xFFFFFFFF
opcache.preferred_memory_model => no value => no value
opcache.protect_memory => 0 => 0
opcache.restrict_api => no value => no value
opcache.revalidate_freq => 2 => 2
opcache.revalidate_path => Off => Off
opcache.save_comments => 1 => 1
opcache.use_cwd => On => On
opcache.validate_timestamps => On => On

zip

Zip => enabled
Extension Version => $Id: 05dd1ecc211075107543b0ef8cee488dd229fccf $
Zip version => 1.11.0
Libzip version => 0.10.1

zlib

ZLib Support => enabled
Stream Wrapper => compress.zlib://
Stream Filter => zlib.inflate, zlib.deflate
Compiled Version => 1.2.8
Linked Version => 1.2.8

Directive => Local Value => Master Value
zlib.output_compression => Off => Off
zlib.output_compression_level => -1 => -1
zlib.output_handler => no value => no value

Additional Modules

Module Name

Environment

Variable => Value
XDG_CONFIG_DIRS => /etc/xdg:/etc/xdg
LANG => de_DE.utf8
CONFIG_PROTECT_MASK => /etc/gentoo-release /etc/sandbox.d /etc/php/cli-php5.5/ext-active/ /etc/php/cgi-php5.5/ext-active/ /etc/php/apache2-php5.5/ext-active/ /etc/fonts/fonts.conf /etc/gconf /etc/terminfo /etc/ca-certificates.conf /etc/revdep-rebuild
SYSTEMD_LESS => FRSM --shift 5
LOGNAME => doertedev
SHLVL => 3
PRELINK_PATH_MASK => /usr/lib64/libfreebl3.so:/usr/lib64/libnssdbm3.so:/usr/lib64/libsoftokn3.so
RUBYOPT => -rauto_gem
MANPATH => /usr/local/share/man:/usr/share/man:/usr/share/gcc-data/x86_64-pc-linux-gnu/4.8.3/man:/usr/share/binutils-data/x86_64-pc-linux-gnu/2.24/man:/usr/lib64/php5.5/man/
HG => /usr/bin/hg
QT_GRAPHICSSYSTEM => raster
PWD => /home/doertedev/Code/csi/winzerstube-hohenlohe.de
OPENGL_PROFILE => xorg-x11
XSESSION => xfce4
DISPLAY => :0.0
XAUTHORITY => /home/doertedev/.Xauthority
DESKTOP_SESSION => xfce
SSH_AUTH_SOCK => /tmp/gpg-XrXAPx/S.gpg-agent.ssh
LESS => -R
COLORTERM => xfce4-terminal
GSETTINGS_BACKEND => gconf
GCC_SPECS =>  
VBOX_APP_HOME => /usr/lib64/virtualbox
DBUS_SESSION_BUS_ADDRESS => unix:abstract=/tmp/dbus-S5VUNX7vtl,guid=8134ce46afc32a63a3fa25f853d9f5c7
LESSOPEN => |lesspipe %s
MAIL => /var/mail/doertedev
XDG_DATA_DIRS => /usr/local/share:/usr/share:/usr/share
_ => /usr/bin/php
XDG_MENU_PREFIX => xfce-
GLADE_MODULE_PATH => :
XDG_SESSION_COOKIE => 3c9626331ab893bf89e655c8533ef7fb-1406793159.225589-1305913809
SHELL => /bin/zsh
INFOPATH => /usr/share/info:/usr/share/gcc-data/x86_64-pc-linux-gnu/4.8.3/info:/usr/share/binutils-data/x86_64-pc-linux-gnu/2.24/info
WINDOWID => 46180384
TERM => xterm
SESSION_MANAGER => local/trolovo:@/tmp/.ICE-unix/5692,unix/trolovo:/tmp/.ICE-unix/5692
PAGER => less
GUILE_LOAD_PATH => /usr/share/guile/1.8
PATH => /usr/local/bin:/usr/bin:/bin:/opt/bin:/usr/x86_64-pc-linux-gnu/gcc-bin/4.8.2:/home/doertedev/.composer/vendor/bin/
LC_COLLATE => C
GLADE_CATALOG_PATH => :
EDITOR => /usr/bin/vi
HOME => /home/doertedev
VISUAL => /usr/bin/vi
USER => doertedev
GLADE_PIXMAP_PATH => :
CONFIG_PROTECT => /usr/share/gnupg/qualified.txt
GPG_AGENT_INFO => /tmp/gpg-tCD5Yz/S.gpg-agent:5697:1
SSH_AGENT_PID => 5697
OLDPWD => /home/doertedev
ZSH => /home/doertedev/.oh-my-zsh
GREP_OPTIONS => --color=auto --exclude-dir=.cvs --exclude-dir=.git --exclude-dir=.hg --exclude-dir=.svn
GREP_COLOR => 1;32
LC_CTYPE => de_DE.utf8
LSCOLORS => Gxfxcxdxbxegedabagacad

PHP Variables

Variable => Value
_SERVER["XDG_CONFIG_DIRS"] => /etc/xdg:/etc/xdg
_SERVER["LANG"] => de_DE.utf8
_SERVER["CONFIG_PROTECT_MASK"] => /etc/gentoo-release /etc/sandbox.d /etc/php/cli-php5.5/ext-active/ /etc/php/cgi-php5.5/ext-active/ /etc/php/apache2-php5.5/ext-active/ /etc/fonts/fonts.conf /etc/gconf /etc/terminfo /etc/ca-certificates.conf /etc/revdep-rebuild
_SERVER["SYSTEMD_LESS"] => FRSM --shift 5
_SERVER["LOGNAME"] => doertedev
_SERVER["SHLVL"] => 3
_SERVER["PRELINK_PATH_MASK"] => /usr/lib64/libfreebl3.so:/usr/lib64/libnssdbm3.so:/usr/lib64/libsoftokn3.so
_SERVER["RUBYOPT"] => -rauto_gem
_SERVER["MANPATH"] => /usr/local/share/man:/usr/share/man:/usr/share/gcc-data/x86_64-pc-linux-gnu/4.8.3/man:/usr/share/binutils-data/x86_64-pc-linux-gnu/2.24/man:/usr/lib64/php5.5/man/
_SERVER["HG"] => /usr/bin/hg
_SERVER["QT_GRAPHICSSYSTEM"] => raster
_SERVER["PWD"] => /home/doertedev/Code/csi/winzerstube-hohenlohe.de
_SERVER["OPENGL_PROFILE"] => xorg-x11
_SERVER["XSESSION"] => xfce4
_SERVER["DISPLAY"] => :0.0
_SERVER["XAUTHORITY"] => /home/doertedev/.Xauthority
_SERVER["DESKTOP_SESSION"] => xfce
_SERVER["SSH_AUTH_SOCK"] => /tmp/gpg-XrXAPx/S.gpg-agent.ssh
_SERVER["LESS"] => -R
_SERVER["COLORTERM"] => xfce4-terminal
_SERVER["GSETTINGS_BACKEND"] => gconf
_SERVER["GCC_SPECS"] => 
_SERVER["VBOX_APP_HOME"] => /usr/lib64/virtualbox
_SERVER["DBUS_SESSION_BUS_ADDRESS"] => unix:abstract=/tmp/dbus-S5VUNX7vtl,guid=8134ce46afc32a63a3fa25f853d9f5c7
_SERVER["LESSOPEN"] => |lesspipe %s
_SERVER["MAIL"] => /var/mail/doertedev
_SERVER["XDG_DATA_DIRS"] => /usr/local/share:/usr/share:/usr/share
_SERVER["_"] => /usr/bin/php
_SERVER["XDG_MENU_PREFIX"] => xfce-
_SERVER["GLADE_MODULE_PATH"] => :
_SERVER["XDG_SESSION_COOKIE"] => 3c9626331ab893bf89e655c8533ef7fb-1406793159.225589-1305913809
_SERVER["SHELL"] => /bin/zsh
_SERVER["INFOPATH"] => /usr/share/info:/usr/share/gcc-data/x86_64-pc-linux-gnu/4.8.3/info:/usr/share/binutils-data/x86_64-pc-linux-gnu/2.24/info
_SERVER["WINDOWID"] => 46180384
_SERVER["TERM"] => xterm
_SERVER["SESSION_MANAGER"] => local/trolovo:@/tmp/.ICE-unix/5692,unix/trolovo:/tmp/.ICE-unix/5692
_SERVER["PAGER"] => less
_SERVER["GUILE_LOAD_PATH"] => /usr/share/guile/1.8
_SERVER["PATH"] => /usr/local/bin:/usr/bin:/bin:/opt/bin:/usr/x86_64-pc-linux-gnu/gcc-bin/4.8.2:/home/doertedev/.composer/vendor/bin/
_SERVER["LC_COLLATE"] => C
_SERVER["GLADE_CATALOG_PATH"] => :
_SERVER["EDITOR"] => /usr/bin/vi
_SERVER["HOME"] => /home/doertedev
_SERVER["VISUAL"] => /usr/bin/vi
_SERVER["USER"] => doertedev
_SERVER["GLADE_PIXMAP_PATH"] => :
_SERVER["CONFIG_PROTECT"] => /usr/share/gnupg/qualified.txt
_SERVER["GPG_AGENT_INFO"] => /tmp/gpg-tCD5Yz/S.gpg-agent:5697:1
_SERVER["SSH_AGENT_PID"] => 5697
_SERVER["OLDPWD"] => /home/doertedev
_SERVER["ZSH"] => /home/doertedev/.oh-my-zsh
_SERVER["GREP_OPTIONS"] => --color=auto --exclude-dir=.cvs --exclude-dir=.git --exclude-dir=.hg --exclude-dir=.svn
_SERVER["GREP_COLOR"] => 1;32
_SERVER["LC_CTYPE"] => de_DE.utf8
_SERVER["LSCOLORS"] => Gxfxcxdxbxegedabagacad
_SERVER["PHP_SELF"] => 
_SERVER["SCRIPT_NAME"] => 
_SERVER["SCRIPT_FILENAME"] => 
_SERVER["PATH_TRANSLATED"] => 
_SERVER["DOCUMENT_ROOT"] => 
_SERVER["REQUEST_TIME_FLOAT"] => 1406820536.8554
_SERVER["REQUEST_TIME"] => 1406820536
_SERVER["argv"] => Array
(
)

_SERVER["argc"] => 0

PHP License
blabla
 [2014-07-31 16:02 UTC] stefan dot staudenmeyer at csiweb dot de
5.4.31 is the last version which is working for me, everything above 5.5.0 failed in my case. sadly.
 [2014-08-09 23:57 UTC] mm-phpnet at miguelito dot org
I just ran into the same thing (on funtoo, which is based on gentoo builds).  I can even reproduce on the command line...

bender(sandiego) [html]$ /usr/lib64/php5.5/bin/php index.php | head
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
[snip the rest of the html]

But run the cgi binary:
ender(sandiego) [html]$ /usr/lib64/php5.5/bin/php-cgi index.php | head
PHP Parse error:  syntax error, unexpected '<<<EndMessage' in /[snip path to file].php on line 309
X-Powered-By: PHP/5.5.15-pl0-gentoo
Content-type: text/html

They were built together.  Previously 5.5.14 worked, removing 5.5.15 and rebuilding 5.1.14 and it didn't fix it.  I'm looking at exact output from the build process to see if there was an odd flag passed to ./configure but looking at the binaries, they both refer to HEREDOC so I don't think it was disabled.  Back-rev'd to 3.4.31 for now to get site working again.

Looks like it could likely be gentoo related since we're both on gentoo.
 [2014-08-11 09:26 UTC] stefan dot staudenmeyer at csiweb dot de
Can be closed. Works on Upstream. This is an issue with the current ebuilds, so I'm sending this to bugs.gentoo.org.

Thanks anyways people :)
 [2014-09-03 08:54 UTC] dev at den dot cx
I've the same problem with PHP 5.5.* running on Gentoo. I can't find any bug report on bugs.gentoo.org. Is the Gentoo package maintainer aware of this problem or is there a bug report somewhere?
 [2014-09-03 09:41 UTC] reuben-php-bugs at reub dot net
This was an upstream bug, see https://bugs.gentoo.org/show_bug.cgi?id=518904 .
 [2014-09-03 11:26 UTC] dev at den dot cx
Thank you for providing the link! After upgrading of this re2c-package my PHP 5.5(.16) is working fine again.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Jun 16 20:01:28 2024 UTC