GoranTornqvist
Verified User
Hello, I tried upgrading my server from php 4.3.8->4.3.10 but many php scripts on my server got "broken" when doing this. Some worked but others gave errors, example:
define(strtoupper($_constname), $_constval);
gave error: Constants may only evaluate to scalar values
This error came from our kayako e-support scripts (http://www.kayako.com/)
Other scripts just printed a whole bunch of Array() Array() Array() Array() Array() Array() on the pages. I haven't looked much on the code that goes wrong but I thought I should ask if any of you guys if you had this problem?
This is my configure string for php:
'./configure' '--enable-force-cgi-redirect' '--enable-cgi' '--with-curl' '--with-curl-dir=/usr/local/lib' '--with-gd' '--with-gettext' '--with-jpeg-dir=/usr/local' '--with-kerberos' '--with-mcrypt' '--with-mysql' '--with-pear' '--with-png-dir=/usr/local' '--with-xml' '--with-zlib' '--with-zlib-dir=/usr/local/lib' '--enable-bcmath' '--enable-calendar' '--enable-ftp' '--enable-magic-quotes' '--enable-sockets' '--enable-track-vars' '--with-mssql=/usr/local/' '--with-iconv' '--enable-mbstring' '--with-openssl=/usr/' '--with-dom-xslt' '--with-dom-exslt' '--with-dom' '--with-imap=/usr/local' '--with-imap-ssl=/usr' '--with-imagick' '--with-t1lib=/usr/local/lib' '--with-freetype-dir=/usr/local/include/freetype2' '--enable-gd-native-ttf' '--enable-gd-imgstrttf' '--enable-id3' '--enable-shmop'
the first make gave me this error:
gcc: sapi/cli/php_cli.o: No such file or directory
gcc: sapi/cli/getopt.o: No such file or directory
*** Error code 1
So I did a "make clean" and after that the make & make install went ok, don't know if this has anything to do with it.
Thanks for any help
define(strtoupper($_constname), $_constval);
gave error: Constants may only evaluate to scalar values
This error came from our kayako e-support scripts (http://www.kayako.com/)
Other scripts just printed a whole bunch of Array() Array() Array() Array() Array() Array() on the pages. I haven't looked much on the code that goes wrong but I thought I should ask if any of you guys if you had this problem?
This is my configure string for php:
'./configure' '--enable-force-cgi-redirect' '--enable-cgi' '--with-curl' '--with-curl-dir=/usr/local/lib' '--with-gd' '--with-gettext' '--with-jpeg-dir=/usr/local' '--with-kerberos' '--with-mcrypt' '--with-mysql' '--with-pear' '--with-png-dir=/usr/local' '--with-xml' '--with-zlib' '--with-zlib-dir=/usr/local/lib' '--enable-bcmath' '--enable-calendar' '--enable-ftp' '--enable-magic-quotes' '--enable-sockets' '--enable-track-vars' '--with-mssql=/usr/local/' '--with-iconv' '--enable-mbstring' '--with-openssl=/usr/' '--with-dom-xslt' '--with-dom-exslt' '--with-dom' '--with-imap=/usr/local' '--with-imap-ssl=/usr' '--with-imagick' '--with-t1lib=/usr/local/lib' '--with-freetype-dir=/usr/local/include/freetype2' '--enable-gd-native-ttf' '--enable-gd-imgstrttf' '--enable-id3' '--enable-shmop'
the first make gave me this error:
gcc: sapi/cli/php_cli.o: No such file or directory
gcc: sapi/cli/getopt.o: No such file or directory
*** Error code 1
So I did a "make clean" and after that the make & make install went ok, don't know if this has anything to do with it.
Thanks for any help