Author Topic: PHP 5.3 latest  (Read 7903 times)

Offline sckramer

  • Jr. Member
  • **
  • Posts: 17
PHP 5.3 latest
« on: July 15, 2009, 12:59:27 PM »
PHP Deprecated: Function set_magic_quotes_runtime() is deprecated in C:\inetpub\wwwroot\roundcubemail_cds\program\include\iniset.php on line 63 PHP Deprecated: Assigning the return value of new by reference is deprecated in C:\inetpub\wwwroot\roundcubemail_cds\program\lib\PEAR.php on line 563 PHP Deprecated: Assigning the return value of new by reference is deprecated in C:\inetpub\wwwroot\roundcubemail_cds\program\lib\PEAR.php on line 566 PHP Deprecated: Assigning the return value of new by reference is deprecated in C:\inetpub\wwwroot\roundcubemail_cds\program\lib\MDB2.php on line 392 PHP Deprecated: Assigning the return value of new by reference is deprecated in C:\inetpub\wwwroot\roundcubemail_cds\program\lib\MDB2.php on line 2614

I dont even get the login page...

I can comment out set_magic_quotes_runtime() & fix iniset.php--

How do I fix this...? it's running on the newest php, windows...

also I tried newer versions of rc, including today's latest svn version
« Last Edit: July 15, 2009, 02:11:56 PM by sckramer »

Offline sckramer

  • Jr. Member
  • **
  • Posts: 17
things I tried:
« Reply #1 on: July 15, 2009, 02:07:11 PM »
error_reporting(0);

this clears up some warnings... but not all--

Offline Rustig

  • Newbie
  • *
  • Posts: 2
Snow Leopard
« Reply #2 on: September 02, 2009, 08:21:50 AM »
After upgrading from Leopard to Snow Leopard i have the same problem (i think it has something to do with the PHP version 5.3.0)

I was using RoundCube version 2.1

My error on the front page is: (also no login screen)

.../program/lib/iniset.php on line 63
.../program/lib/PEAR.php on line 563
.../program/lib/PEAR.php on line 566

Roundcube was working great on my OSX (Leopard) but after the upgrade to Snow Leopard it stopt working.

No login screen anymore and when i remove the .htaccess it gave me the errors you can see above.

Reinstalled MySQL (new database) no sollution. Used the Roundcube 3 beta, here is some differents, i can see the login screen again, its not working because i got an error about Roundcube cant use cookies, but my configuration is able to accept cookies.

The Installer pages result also in error:

Code: [Select]
main.inc.php:  OK
db.inc.php:  OK
Check if directories are writable
RoundCube may need to write/save files into these directories

temp/:  OK
logs/:  OK

Check configured database settings

Deprecated: Assigning the return value of new by reference is deprecated in /Users/xxx/Sites/rc/program/lib/MDB2.php on line 392

Deprecated: Assigning the return value of new by reference is deprecated in /Users/xxx/Sites/rc/program/lib/MDB2.php on line 2613

Deprecated: Assigning the return value of new by reference is deprecated in /Users/xxx/Sites/rc/program/lib/PEAR.php on line 563

Deprecated: Assigning the return value of new by reference is deprecated in /Users/xxx/Sites/rc/program/lib/PEAR.php on line 566
DSN (write):  OK
DB Schema:  OK
DB Write:  OK
DB Time:  OK


Hope someone can help me...

Thanks in advance,
Mike

Offline jcip

  • Newbie
  • *
  • Posts: 4
Snow Leopard Server
« Reply #3 on: September 10, 2009, 07:41:28 AM »
Quote from: Rustig;20897
After upgrading from Leopard to Snow Leopard i have the same problem (i think it has something to do with the PHP version 5.3.0)

I was using RoundCube version 2.1

My error on the front page is: (also no login screen)

.../program/lib/iniset.php on line 63
.../program/lib/PEAR.php on line 563
.../program/lib/PEAR.php on line 566

Roundcube was working great on my OSX (Leopard) but after the upgrade to Snow Leopard it stopt working.

No login screen anymore and when i remove the .htaccess it gave me the errors you can see above.

Reinstalled MySQL (new database) no sollution. Used the Roundcube 3 beta, here is some differents, i can see the login screen again, its not working because i got an error about Roundcube cant use cookies, but my configuration is able to accept cookies.

The Installer pages result also in error:

Code: [Select]
main.inc.php:  OK
db.inc.php:  OK
Check if directories are writable
RoundCube may need to write/save files into these directories

temp/:  OK
logs/:  OK

Check configured database settings

Deprecated: Assigning the return value of new by reference is deprecated in /Users/xxx/Sites/rc/program/lib/MDB2.php on line 392

Deprecated: Assigning the return value of new by reference is deprecated in /Users/xxx/Sites/rc/program/lib/MDB2.php on line 2613

Deprecated: Assigning the return value of new by reference is deprecated in /Users/xxx/Sites/rc/program/lib/PEAR.php on line 563

Deprecated: Assigning the return value of new by reference is deprecated in /Users/xxx/Sites/rc/program/lib/PEAR.php on line 566
DSN (write):  OK
DB Schema:  OK
DB Write:  OK
DB Time:  OK


Hope someone can help me...

Thanks in advance,
Mike


I am also having these exact same issues with snow leopard server.  Anyone have any tips for fixing this issue?

Offline Rustig

  • Newbie
  • *
  • Posts: 2
solved
« Reply #4 on: September 29, 2009, 01:36:25 AM »
Had succes with help from DIYMacServer  Installing everything on Snow Leopard

Credits goes to Richard for helping me out installing PHP 5.2.11 on my Snow Leopard.

In my previous attempts it did not worked with version PHP 5.2.10 but with the new 5.2.11 in combination with the latest stable version of Roundcubemail it works like a charm.

Here are my fast scratch steps how i did it, try to run true this in combination with the detail explanations from Richard -> DIYMacserver.com

Quote


---

MySQL (64 bit) installeren via DMG installer http://dev.mysql.com/downloads/mysql/5.1.html#macosx-dmg
PreferencePane installeren
MySQL source downloaden voor later gebruik http://dev.mysql.com/downloads/mysql/5.1.html#source

-    MySQL met shared libraries http://diymacserver.com/compiling-mysql-5-1-x-in-64-bits-mode-on-snow-leopard/

Ga naar de reeds gedownloade Source (tar) file en voer onderstaande uit

CFLAGS="-arch x86_64" \
CXXFLAGS="-arch x86_64"

./configure -prefix=/usr/local/mysql \
-with-server-suffix=-standard \
-enable-thread-safe-client \
-enable-local-infile \
-enable-shared \
-with-zlib-dir=bundled \
-with-big-tables \
-with-readline \
-with-plugins=all \
-without-docs

make
sudo make install

- configureren MySQL http://diymacserver.com/installing-mysql/securing-your-mysql-install/

chmod 644 /etc/my.cnf

mysql> drop database test;
mysql> use mysql;
mysql> delete from db;
mysql> delete from user where User = '';
mysql> flush privileges;

mysql> update user set Password=PASSWORD(’new_password’)
where User=’root’;
mysql> flush privileges;

mysql> update user set user=”mydbadmin” where user=”root”;
mysql> flush privileges;

---

PCRE downloaden http://www.pcre.org/

Installeren in 64 bit mode:

CFLAGS="-arch x86_64" \
CXXFLAGS="-arch x86_64"

./configure
make
sudo make install

---

PHP 5.2.11 downloaden: http://www.php.net/

export MACOSX_DEPLOYMENT_TARGET=10.5 \
CFLAGS="-arch x86_64" \
CXXFLAGS="-arch x86_64"

./configure --prefix=/usr/local/php5 \
 --mandir=/usr/share/man \
 --infodir=/usr/share/info \
 --sysconfdir=/etc \
 --with-config-file-path=/etc \
 --with-zlib \
 --with-zlib-dir=/usr \
 --with-openssl \
 --without-iconv \
 --enable-exif \
 --enable-ftp \
 --enable-mbstring \
 --enable-mbregex \
 --enable-sockets \
 --with-mysql=/usr/local/mysql \
 --with-pdo-mysql=/usr/local/mysql \
 --with-mysqli=/usr/local/mysql/bin/mysql_config \
 --with-apxs2=/usr/sbin/apxs \
 --with-pcre-dir=/usr/local/lib

nano makefile

(zoek naar EXTRA_LIBS) en dit toevoegen aan het einde van de regel: -lresolv

voorbeeld:
EXTRA_LIBS = -lmysqlclient -lssl -lcrypto -lz -lssl -lcrypto -lm -lxml2 -lz -licucore -lm -lxml2 -lz -licucore -lm -lmysqlclient -lz -lm -lmysqlclient -lz -lm -lxml2 -lz -licucore -lm -lxml2 -lz -licucore -lm -lxml2 -lz -licucore -lm -lxml2 -lz -licucore -lm -lresolv


make
sudo make install

---

httpd.conf aanpassen:

LoadModule php5_module /usr/libexec/apache2/libphp5.so
AddType application/x-httpd-php .php .phtml
AddType application/x-httpd-php-source .phps






Mike
« Last Edit: September 29, 2009, 01:48:43 AM by Rustig »

Offline pillarsdotnet

  • Newbie
  • *
  • Posts: 4