ID:               42218
 Comment by:       super at superduper dot org
 Reported By:      fernando at barnatech dot com
 Status:           Assigned
 Bug Type:         GD related
 Operating System: Suse 10.2
 PHP Version:      5.2.4RC1
 Assigned To:      pajoye
 New Comment:

Hello! 

I'm in an interresting situation where I have to configurations - one
in which the problem occurs, one in which works perfectly fine. 

I can't really tell the difference between the configurations, so i
just post the most important phpinfo() elements here and i hope it
helps. 

Both versions of php aren't recent. As it works in the older one
(5.2.2) and doesn't in the newer one i suspect it is more of a
configuration issue. 


---------- WORKING CONFIGURATION --------- 
os x 10.4, xampp server, php 5.2.2
configure string: 
'./configure' '--prefix=/Applications/xampp/xamppfiles'
'--program-suffix=-5.2.2'
'--libdir=/Applications/xampp/xamppfiles/lib/php/php5'
'--includedir=/Applications/xampp/xamppfiles/include/php/php5'
'--with-apxs2=/Applications/xampp/xamppfiles/bin/apxs'
'--with-config-file-path=/Applications/xampp/etc'
'--with-mysql=/Applications/xampp/xamppfiles' '--disable-debug'
'--enable-bcmath' '--enable-calendar' '--enable-ctype' '--enable-dbase'
'--enable-discard-path' '--enable-exif' '--enable-filepro'
'--enable-force-cgi-redirect' '--enable-ftp' '--enable-gd-imgstrttf'
'--enable-gd-native-ttf' '--with-ttf' '--enable-magic-quotes'
'--enable-memory-limit' '--enable-safe-mode' '--enable-shmop'
'--enable-sigchild' '--enable-sysvsem' '--enable-sysvshm'
'--enable-track-vars' '--enable-trans-sid' '--enable-wddx' '--enable-yp'
'--with-ftp' '--with-ncurses=/Applications/xampp/xamppfiles'
'--with-gdbm=/Applications/xampp/xamppfiles'
'--with-jpeg-dir=/Applications/xampp/xamppfiles'
'--with-png-dir=/Applications/xampp/xamppfiles'
'--with-freetype-dir=/Applications/xampp/xamppfiles' '--without-xpm'
'--with-zlib=yes' '--with-zlib-dir=/Applications/xampp/xamppfiles'
'--with-openssl=/Applications/xampp/xamppfiles'
'--with-expat-dir=/Applications/xampp/xamppfiles'
'--enable-xslt=/Applications/xampp/xamppfiles'
'--with-xsl=/Applications/xampp/xamppfiles'
'--with-dom=/Applications/xampp/xamppfiles'
'--with-ldap=/Applications/xampp/xamppfiles' '--with-gd'
'--with-mysql-sock=/Applications/xampp/xamppfiles/var/mysql/mysql.sock'
'--with-mcrypt=/Applications/xampp/xamppfiles'
'--with-mhash=/Applications/xampp/xamppfiles' '--enable-sockets'
'--with-curl=/Applications/xampp/xamppfiles' '--enable-mbregex'
'--enable-zend-multibyte' '--with-zip=/Applications/xampp/xamppfiles'
'--enable-exif' '--with-sqlite'
'--with-libxml-dir=/Applications/xampp/xamppfiles' '--enable-soap'
'--enable-pcntl' '--enable-dbx'
'--with-mysqli=/Applications/xampp/xamppfiles/bin/mysql_config'
'--with-bz2=/Applications/xampp/xamppfiles'
'--with-ming=shared,/Applications/xampp/xamppfiles'
'--with-pear=/Applications/xampp/xamppfiles/lib/php/pear'
'--with-mssql=/Applications/xampp/xamppfiles'
'--with-imap-dir=/Applications/xampp/xamppfiles'
'--with-imap=/Applications/xampp/xamppfiles' '--enable-mbstring=all'
'--with-pgsql=shared,/usr'
'--with-gettext=/Applications/xampp/xamppfiles'


mbstring config: 
mbstring
Multibyte Support       enabled
Multibyte string engine         libmbfl
Multibyte (japanese) regex support      enabled
Multibyte regex (oniguruma) version     4.4.4
Multibyte regex (oniguruma) backtrack check     On

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.internal_encoding      no value        no value
mbstring.language       neutral neutral
mbstring.script_encoding        no value        no value
mbstring.strict_detection       Off     Off
mbstring.substitute_character   no value        no value



----------- BROKEN CONFIGURATION (my webhost)-------------
some linux, php 5.2.3

configure string: 
 Command         './configure' '--with-apxs2=/usr/local/apache/bin/apxs'
'--prefix=/imports/php5' '--with-config-file-path=/imports/php5/'
'--with-openssl=/usr/local/ssl' '--with-dom' '--with-iconv'
'--with-curl' '--with-mysql=/usr/local' '--with-gettext'
'--enable-mbstring' '--with-xml' '--enable-track-vars' '--enable-exif'
'--with-jpeg-dir' '--with-zlib' '--with-zlib-dir' '--with-png-dir'
'--with-gd' '--with-gettext' '--with-freetype-dir' '--with-xpm-dir'
'--enable-gd-native-ttf' '--enable-gd-jis-conv' '--with-mhash'
'--enable-ftp' '--with-pear' '--with-pspell'
'--with-mysqli=/usr/local/bin/mysql_config' '--with-ldap'
'--with-ldap-sasl' '--with-imap=../imap-2004g'
'--with-imap-ssl=/usr/local/ssl' '--with-libxml' '--with-xsl'
'--with-libexpat-dir=/usr' '--with-mcrypt' '--enable-bcmath'
'--with-mime-magic' '--enable-calendar' '--with-pdo-mysql'
'--enable-sockets' '--enable-soap' '--with-tidy'

mbstring
Multibyte Support       enabled
Multibyte string engine         libmbfl
Multibyte (japanese) regex support      enabled
Multibyte regex (oniguruma) version     4.4.4
Multibyte regex (oniguruma) backtrack check     On

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.internal_encoding      no value        no value
mbstring.language       neutral neutral
mbstring.strict_detection       Off     Off
mbstring.substitute_character   no value        no value






Conclusions? 
To save you reading all that configurations - i realized only two
differences: 
- the working config was compiled with --enable-mbstring=all, the
broken one only with --enable-mbstring

- the working config's phpinfo shows mbstring.script_encoding set to no
value, the broken config (even though it's newer) doesn't list this
option.


Previous Comments:
------------------------------------------------------------------------

[2007-08-23 20:26:06] [EMAIL PROTECTED]

Feedback provided by grzegorz

------------------------------------------------------------------------

[2007-08-19 01:00:00] php-bugs at lists dot php dot net

No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".

------------------------------------------------------------------------

[2007-08-13 09:32:45] grzegorz at inventor dot com dot pl

I experienced the same problem as described above. 
source file encoding: UTF-8
PHP version: 5.2.2
GD Version: bundled (2.0.34 compatible)
OS: Sabayon Linux

I recompiled PHP with japanese support disabled and it seems to make 
problem go away.

------------------------------------------------------------------------

[2007-08-09 07:59:47] fernando at barnatech dot com

I'll ask to the sysadmin team for a recompilation without japanese
support and then for a test repetition. It can last for days, I think.
I'll tell you the progress, if there's some.

------------------------------------------------------------------------

[2007-08-09 07:47:24] [EMAIL PROTECTED]

About the install, on windows you don't have to install anything. You
can run php directly from the uncompressed directory, using the console
(cmd).

"By the way, may he bug disappear if PHP-GD is recompiled without
japanese support? The "any2eucjp()" in the error suggests it."

Yes, if you don't need japanese, disable it. I suspect a conflict
between the encoding.

------------------------------------------------------------------------

The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
    http://bugs.php.net/42218

-- 
Edit this bug report at http://bugs.php.net/?id=42218&edit=1

Reply via email to