Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 359251 - dev-db/phppgadmin-4.2.3 with dev-lang/php-[version?] - Deprecated: Assigning the return value of new by reference is deprecated in /var/www/localhost/htdocs/phppgadmin/classes/Misc.php on line 344
Summary: dev-db/phppgadmin-4.2.3 with dev-lang/php-[version?] - Deprecated: Assigning ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: PgSQL Bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-03-17 08:47 UTC by Marc Schiffbauer
Modified: 2011-07-20 15:55 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Marc Schiffbauer gentoo-dev 2011-03-17 08:47:59 UTC
Only an error message is shown in the Browser:

Deprecated: Assigning the return value of new by reference is deprecated in /var/www/localhost/htdocs/phppgadmin/classes/Misc.php on line 344

Reproducible: Always




Portage 2.1.9.42 (default/linux/amd64/10.0, gcc-4.5.2, glibc-2.11.3-r0, 2.6.36-gentoo-r5 x86_64)
=================================================================
System uname: Linux-2.6.36-gentoo-r5-x86_64-AMD_Athlon-tm-_Dual_Core_Processor_4850e-with-gentoo-2.0.1
Timestamp of tree: Thu, 17 Mar 2011 00:45:01 +0000
distcc 3.1 x86_64-pc-linux-gnu [disabled]
ccache version 2.4 [enabled]
app-shells/bash:     4.1_p9
dev-java/java-config: 2.1.11-r3
dev-lang/python:     2.6.6-r2, 3.1.3-r1
dev-util/ccache:     2.4-r9
dev-util/cmake:      2.8.1-r2
sys-apps/baselayout: 2.0.1-r1
sys-apps/openrc:     0.7.0
sys-apps/sandbox:    2.4
sys-devel/autoconf:  2.65-r1
sys-devel/automake:  1.10.3, 1.11.1
sys-devel/binutils:  2.20.1-r1
sys-devel/gcc:       4.4.5, 4.5.2
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.10
sys-devel/make:      3.81-r2
virtual/os-headers:  2.6.36.1 (sys-kernel/linux-headers)
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA dlj-1.1"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=k8 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt /usr/share/openvpn/easy-rsa"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/eselect/postgresql /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.3/ext-active/ /etc/php/cgi-php5.3/ext-active/ /etc/php/cli-php5.3/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=k8 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--keep-going"
FEATURES="assume-digests binpkg-logs ccache distlocks fixlafiles fixpackages news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS=""
GENTOO_MIRRORS="http://de-mirror.org/distro/gentoo/ http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/ http://ftp.uni-erlangen.de/pub/mirrors/gentoo"
LANG="C"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="de"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage/local"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="7zip acl amd64 bash-completion berkdb bzip2 cli cracklib crypt cups cxx device-mapper dri fam fortran gdbm gpm iconv ipv6 mmx modules mudflap multilib mysql ncurses nls nptl nptlonly openmp pam pcre perl postgres pppd python readline session sse sse2 ssl sysfs tcpd unicode vim-syntax xattr xorg zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="keyboard" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="de" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="ati" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account" 
Unset:  CPPFLAGS, CTARGET, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2011-03-17 18:11:33 UTC
(In reply to comment #0)
> Only an error message is shown in the Browser:
> 
> Deprecated: Assigning the return value of new by reference is deprecated in
> /var/www/localhost/htdocs/phppgadmin/classes/Misc.php on line 344

1) It doesn't appear clear to me whether this is a warning or an error. Deprecation warnings usually aren't fatal. Could you post some more output from the web server log?

2) Also, we don't know which version of dev-lang/php you are using. Please add that information, and put it in the Summary as well.
Comment 2 Marc Schiffbauer gentoo-dev 2011-03-17 20:23:28 UTC
(In reply to comment #1)
> (In reply to comment #0)
> > Only an error message is shown in the Browser:
> > 
> > Deprecated: Assigning the return value of new by reference is deprecated in
> > /var/www/localhost/htdocs/phppgadmin/classes/Misc.php on line 344
> 
> 1) It doesn't appear clear to me whether this is a warning or an error.
> Deprecation warnings usually aren't fatal. Could you post some more output from
> the web server log?

Yes, but the webapp did not work at all. Only that message and a white screen.

The apache error log just shows the same error and nothing else.


> 
> 2) Also, we don't know which version of dev-lang/php you are using. Please add
> that information, and put it in the Summary as well.

current stable version: dev-lang/php-5.3.5

And update: using current ~arch phppgadmin works fine (5.0.2)
Comment 3 Tango 2011-04-10 20:27:23 UTC
I have been experiencing this exact problem.  Installing the ~x86 5.0.2 version seems to correct the issue.  I still can't log in yet, however I believe that to be a separate issue.
Comment 4 John L. Poole 2011-07-15 14:15:24 UTC
I have the same error message.

atom ~ # eix -I php
[I] app-admin/eselect-php
     Available versions:  0.6.2 ~0.6.4
     Installed versions:  0.6.2(11:34:14 01/29/11)
     Homepage:            http://www.gentoo.org
     Description:         PHP eselect module

[I] app-doc/php-docs
     Available versions:  20071125-r2!b!s ~20100730!b!s ~20101029!b!s {linguas_cs linguas_da linguas_de linguas_el +linguas_en linguas_es linguas_fa linguas_fi linguas_fr linguas_he linguas_hu linguas_it linguas_ja linguas_ko linguas_nl linguas_pl linguas_pt_BR linguas_ro linguas_ru linguas_sk linguas_sv linguas_tr linguas_zh_CN linguas_zh_TW}
     Installed versions:  20071125-r2!b!s(11:32:07 01/29/11)(linguas_en -linguas_cs -linguas_da -linguas_de -linguas_el -linguas_es -linguas_fi -linguas_fr -linguas_he -linguas_hu -linguas_it -linguas_ja -linguas_ko -linguas_nl -linguas_pl -linguas_pt_BR -linguas_ro -linguas_ru -linguas_sk -linguas_sv -linguas_zh_CN -linguas_zh_TW)
     Homepage:            http://www.php.net/download-docs.php
     Description:         HTML documentation for PHP

[I] dev-db/phppgadmin
     Available versions:
        (4.2.2) 4.2.2
        (4.2.3) 4.2.3
        (5.0.2) ~5.0.2
        (9999)  **9999
        {vhosts}
     Installed versions:  4.2.3(4.2.3)(09:13:22 07/15/11)(vhosts)
     Homepage:            http://phppgadmin.sourceforge.net/
     Description:         Web-based administration for Postgres database in php

[I] dev-lang/php
     Available versions:
        (5)     5.2.14 5.3.3-r1
        (5.2)   5.2.17
        (5.3)   5.3.5 ~5.3.5-r1 5.3.6 ~5.3.6-r1
        (5.4)   [M]~5.4.0_pre201105211430
        (5.5)   [M]~5.5.0_pre201105211430
        {adabas apache2 bcmath berkdb birdstep bzip2 calendar cdb cgi cjk +cli concurrentmodphp crypt +ctype curl curlwrappers db2 dbase dbmaker debug discard-path doc embed empress empress-bcs enchant esoob exif fdftk +fileinfo +filter firebird flatfile force-cgi-redirect fpm frontbase ftp gd gd-external gdbm gmp +hash +iconv imap inifile interbase intl iodbc ipv6 +json kerberos kolab ldap ldap-sasl libedit mhash msql mssql mysql mysqli mysqlnd ncurses nls oci8 oci8-instant-client odbc pcntl +pcre pdo +phar pic +posix postgres qdbm readline recode (+)reflection sapdb +session sharedext sharedmem +simplexml snmp soap sockets solid spell (+)spl sqlite sqlite3 ssl suhosin sybase-ct sysvipc threads tidy +tokenizer truetype unicode wddx (+)xml (+)xmlreader xmlrpc (+)xmlwriter xpm xsl zip zlib}
     Installed versions:  5.3.6(5.3)(09:54:46 07/15/11)(apache2 berkdb bzip2 cli crypt ctype curl doc fileinfo filter ftp gd gdbm hash iconv ipv6 json mysql mysqli nls odbc pdo phar posix postgres readline session simplexml spell sqlite sqlite3 ssl tokenizer truetype unicode xml xpm xsl zlib -adabas -bcmath -birdstep -calendar -cdb -cgi -cjk -curlwrappers -db2 -dbmaker -debug -embed -empress -empress-bcs -enchant -esoob -exif -firebird -flatfile -fpm -frontbase -gd-external -gmp -imap -inifile -interbase -intl -iodbc -kerberos -kolab -ldap -ldap-sasl -libedit -mhash -mssql -mysqlnd -oci8 -oci8-instant-client -pcntl -pic -qdbm -recode -sapdb -sharedext -sharedmem -snmp -soap -sockets -solid -sybase-ct -sysvipc -threads -tidy -wddx -xmlreader -xmlrpc -xmlwriter -zip)
     Homepage:            http://php.net/
     Description:         The PHP language runtime engine: CLI, CGI, FPM/FastCGI, Apache2 and embed SAPIs.

[I] virtual/httpd-php
     Available versions:
        (5.2)   5.2
        (5.3)   5.3
     Installed versions:  5.3(5.3)(12:03:51 01/29/11)
     Description:         Virtual to provide PHP-enabled webservers

Found 5 matches.
atom ~ #  eselect php list apache2
  [1]   php5.3 *
atom ~ #
Comment 5 John L. Poole 2011-07-15 14:31:46 UTC
This worked for and got the login screen to appear:

open the file complained of, e.g. /var/www/[your virtual host domain]/htdocs/phppgadmin/classes/Misc.php, and remove the "&" in line 344.

//$data =& new $_type($_connection->conn); // original
$data = new $_type($_connection->conn); // 7/15/2011 jlpoole revised
Comment 6 Aaron W. Swenson gentoo-dev 2011-07-20 15:55:46 UTC
Calling this fixed in 5.0.2.