php script is generating segmentation fault in Solaris
Linux:
[root@kmefic-web-dev ~]# php -r 'echo iconv("UTF-8", "UTF-8", "Hello, world.\n");'
Hello, world.
We are getting the result.
But the same script is generating segmentation fault in Solaris. Please see below the result from Solaris.
-bash-3.2$ php -r 'echo iconv("UTF-8", "UTF-8", "Hello, world.\n");'
Segmentation Fault (core dumped)
-bash-3.2$ su -
# php -r 'echo iconv("UTF-8", "UTF-8", "Hello, world.\n");'
Segmentation Fault - core dumped
Can you please anyone advice ?