|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2011-07-14 03:48 UTC] michel02 at hotmail dot com
Description:
------------
After successfully compiling PHP 5.3.6 on (patched) Solaris 10 with all required GNU packages from sunfreeware.com, iconv_strlen($var) causes Apache2 extension to crash. Only error apache shows is [notice] child pid 34232 exit signal Segmentation fault (11). No output to browser was generated.
configure command for compiling PHP was:
./configure --verbose --with-gnu-ld --prefix=/usr/local/php --without-gd --disable-pdo --without-pdo-sqlite --without-sqlite --with-config-file-path=/usr/local/php/lib --with-oci8=/export/home/oracle/product/11.1.0/pweb --with-apxs2=/usr/local/apache2/bin/apxs --enable-bcmath --with-openssl=/usr/local/ssl --with-ldap=/usr/local --with-bz2 --enable-calendar --enable-ctype --with-curl=/usr/local/curl --with-curlwrappers --enable-exif --enable-ftp --with-zlib=/usr/local --with-gettext --with-gmp --enable-hash --enable-json --enable-mbstring --enable-mbregex --enable-pcntl --with-libedit=no --with-readline --enable-session --enable-shmop --enable-simplexml --enable-soap --enable-sockets --enable-sysvmsg --enable-sysvsem --enable-sysvshm --enable-tokenizer --enable-wddx --with-libexpat-dir=/usr/local --enable-xml --enable-xmlreader --with-xmlrpc --enable-xmlwriter --with-xsl --enable-zip --disable-static --enable-pcntl --enable-magic-quotes --with-pcre-dir=/usr/local --with-pcre-regex --with-pear
Test script:
---------------
print iconv_strlen("test","UTF-8");
Expected result:
----------------
generate some output
Actual result:
--------------
apache thread killed, error [notice] child pid 34232 exit signal Segmentation fault (11) in errorlog and no output for browser.
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Nov 07 11:00:01 2025 UTC |
I see the same error on Solaris 11.1: root@www:/tmp# /usr/php/5.3/bin/php -v PHP 5.3.14 (cli) (built: Aug 30 2012 01:52:21) root@www:/tmp# /usr/php/5.3/bin/php /tmp/iconv_strlen.php PHP Notice: iconv_strlen(): Unknown error (22) in /tmp/iconv_strlen.php on line 5 PHP Stack trace: PHP 1. {main}() /tmp/iconv_strlen.php:0 PHP 2. iconv_strlen() /tmp/iconv_strlen.php:5 Notice: iconv_strlen(): Unknown error (22) in /tmp/iconv_strlen.php on line 5 Call Stack: 0.0002 315392 1. {main}() /tmp/iconv_strlen.php:0 0.0002 315568 2. iconv_strlen() /tmp/iconv_strlen.php:5 And also on PHP 5.5.3: root@www:/tmp# /opt/php5/bin/php -v PHP 5.5.3 (cli) (built: Aug 25 2013 19:41:00) root@www:/tmp# /opt/php5/bin/php /tmp/iconv_strlen.php PHP Notice: iconv_strlen(): Unknown error (22) in /tmp/iconv_strlen.php on line 5 Notice: iconv_strlen(): Unknown error (22) in /tmp/iconv_strlen.php on line 5