From: Nick Fedchik <nick@fedchik.org.ua>
To: sisyphus@altlinux.ru
Subject: Re: [sisyphus] php: iconv
Date: Tue, 11 Nov 2003 14:06:14 +0200
Message-ID: <200311111406.23017.nick@fedchik.org.ua> (raw)
In-Reply-To: <20031111105720.GE4102@sam-solutions.net>
[-- Attachment #1: signed data --]
[-- Type: text/plain, Size: 2721 bytes --]
В сообщении от Вт 11 Ноя 2003 12:57 Alexander Bokovoy написал(a):
> Вот банальный пример его работоспособности:
> $ cat test.php
> <?php
> $test = 'Iconv форева';
>> var_dump(iconv("CP1251", "UTF-8", $test));
> ?>
>> $ php test.php
> string(18) "Iconv форева"
Использую хост1 (был переведен на Сизиф с Мастера 2.2 примерно
пол-года назад, неудачный апдейт php)
Ок, делаю у себя:
cat test-iconv.php
<?php
$test = 'Iconv Привет';
var_dump(iconv("KOI8-R", "CP1251", $test));
?>
[root@vatra html]# php test-iconv.php
string(12) "Iconv оПХБЕР"
Гут? Полагаю что да.
Далее:
http://host1/test-iconv.php
Fatal error: Call to undefined function: iconv() in
/var/www/html/test-iconv.php on line 3
Наглядная демонстрация проблемы?
Приложение 1: Фрагменты вывода вызова phpinfo()
Configure Command './configure' '--build=i586-alt-linux'
'--host=i586-alt-linux' '--prefix=/usr' '--exec-prefix=/usr'
...
'--enable-calendar' '--enable-bcmath' '--enable-ctype' '--with-iconv'
...
Configuration File (php.ini) Path /etc/php/mod_php/php.ini
PHP API 20020918
PHP Extension 20020429
Приложение 2: Версии установленных пакетов
# rpm -q -a | grep php
mod_php-4.3.4-alt0.cvs20031101
php-common-4.3.4-alt0.cvs20031101
php-imap-4.3.4-alt0.cvs20031101
php-xslt-4.3.4-alt0.cvs20031101
php-mhash-4.3.0-alt0.cvs20030124
php-sockets-4.3.4-alt0.cvs20031101
php-mmcache-2.4.4-alt1
php-curl-4.3.4-alt0.cvs20031101
php-readline-4.3.4-alt0.cvs20031101
php-4.3.4-alt0.cvs20031101
php-dba-4.3.4-alt0.cvs20031101
php-mysql-4.3.4-alt0.cvs20031101
php-snmp-4.3.4-alt0.cvs20031101
php-manual-ru-4.3.0-alt1
php-mcrypt-4.3.0-alt0.cvs20030124
php-devel-4.3.4-alt0.cvs20031101
php-openssl-4.3.4-alt0.cvs20031101
php-ldap-4.3.4-alt0.cvs20031101
php-pear-4.3.4-alt0.cvs20031101
php-pcntl-4.3.4-alt0.cvs20031101
phpMyAdmin-2.5.4-alt1
php-fribidi-4.3.4-alt0.cvs20031101
php-mbstring-4.3.4-alt0.cvs20031101
Приложение 3: Связи динамических библиотек для модуля libphp4.so
ldd libphp4.so
libphp4common.so => /usr/lib/libphp4common.so (0x4000f000)
libc.so.6 => /lib/libc.so.6 (0x40141000)
libcrypt.so.1 => /lib/libcrypt.so.1 (0x4025d000)
libnsl.so.1 => /lib/libnsl.so.1 (0x4028f000)
libexpat.so.0 => /usr/lib/libexpat.so.0 (0x402a4000)
libmm.so.1 => /usr/lib/libmm.so.1 (0x402c3000)
libz.so.1 => /lib/libz.so.1 (0x402c7000)
libresolv.so.2 => /lib/libresolv.so.2 (0x402d6000)
libm.so.6 => /lib/libm.so.6 (0x402e9000)
libdl.so.2 => /lib/libdl.so.2 (0x4030c000)
/lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x80000000)
--
Best Regards, Nick Fedchik
http://www.fedchik.org.ua/
[-- Attachment #2: signature --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
next prev parent reply other threads:[~2003-11-11 12:06 UTC|newest]
Thread overview: 60+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-11-07 16:46 [sisyphus] php: new config files structure??? Andrey Khavryuchenko
2003-11-08 12:20 ` Alexey Gladkov
2003-11-08 17:46 ` [sisyphus] " Andrey Khavryuchenko
2003-11-10 8:04 ` Alexey Gladkov
2003-11-10 9:16 ` Andrey Khavryuchenko
2003-11-10 11:19 ` Nick Fedchik
2003-11-10 11:22 ` Leonid B. Sysoletin
2003-11-10 11:30 ` Nick Fedchik
2003-11-10 11:33 ` Leonid B. Sysoletin
2003-11-10 11:54 ` Andrey Khavryuchenko
2003-11-10 12:06 ` Leonid B. Sysoletin
2003-11-10 13:53 ` Andrey Khavryuchenko
2003-11-10 14:29 ` Alexey Gladkov
2003-11-10 14:38 ` Andrey Khavryuchenko
2003-11-10 15:03 ` Nick Fedchik
2003-11-10 14:45 ` Leonid B. Sysoletin
2003-11-10 15:00 ` Andrey Khavryuchenko
2003-11-10 15:05 ` Leonid B. Sysoletin
2003-11-10 15:24 ` Nick Fedchik
2003-11-10 15:35 ` Victor Forsyuk
2003-11-10 17:44 ` Michael Shigorin
2003-11-11 8:21 ` [sisyphus] Re: php: new config files structu??? Денис Смирнов
2003-11-11 10:45 ` [sisyphus] бочки для мейнтейнеров нестабильного репозитория Nick Fedchik
2003-11-12 13:59 ` [sisyphus] " Денис Смирнов
2003-11-11 17:40 ` [sisyphus] [POLICY] Re: php: new config files structu??? Michael Shigorin
2003-11-11 21:44 ` Sergey Degtyaryov
2003-11-12 8:01 ` Alexey Gladkov
2003-11-12 14:05 ` [sisyphus] Re: [POLICY] " Денис Смирнов
2003-11-12 16:29 ` [sisyphus] " Michael Shigorin
2003-11-13 1:28 ` Денис Смирнов
2003-11-13 14:58 ` Michael Shigorin
2003-11-13 18:00 ` [sisyphus] Надёжность Sisyphus Денис Смирнов
2003-11-13 20:29 ` [sisyphus] [POLICY] " Michael Shigorin
2003-11-13 23:35 ` [sisyphus] Re: [POLICY] " Денис Смирнов
2003-11-17 9:57 ` Michael Shigorin
2003-11-10 15:13 ` [sisyphus] Re: php: new config files structure??? Alexey Gladkov
2003-11-10 17:40 ` Michael Shigorin
2003-11-10 20:32 ` Andrey Khavryuchenko
2003-11-10 17:39 ` Michael Shigorin
2003-11-10 18:12 ` Alexander Bokovoy
2003-11-10 11:48 ` Alexey Gladkov
2003-11-10 11:57 ` Andrey Khavryuchenko
2003-11-10 12:01 ` Nick Fedchik
2003-11-10 12:57 ` Alexey Gladkov
2003-11-10 13:55 ` Andrey Khavryuchenko
2003-11-10 14:44 ` Alexey Gladkov
2003-11-10 14:47 ` Nick Fedchik
2003-11-10 17:36 ` Michael Shigorin
2003-11-11 8:05 ` [sisyphus] php: iconv Nick Fedchik
2003-11-11 8:26 ` Alexander Bokovoy
2003-11-11 8:54 ` [sisyphus] [OFFTOPIC] " Епифанов Сергей
2003-11-11 9:20 ` [sisyphus] " Vitaly Ostanin
2003-11-11 10:29 ` [sisyphus] " Nick Fedchik
2003-11-11 10:57 ` Alexander Bokovoy
2003-11-11 12:06 ` Nick Fedchik [this message]
2003-11-11 12:26 ` Alexey Gladkov
2003-11-11 12:46 ` Nick Fedchik
2003-11-11 13:19 ` Alexey Gladkov
2003-11-11 13:27 ` Nick Fedchik
2003-11-11 12:38 ` Alexander Bokovoy
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200311111406.23017.nick@fedchik.org.ua \
--to=nick@fedchik.org.ua \
--cc=sisyphus@altlinux.ru \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
ALT Linux Sisyphus discussions
This inbox may be cloned and mirrored by anyone:
git clone --mirror http://lore.altlinux.org/sisyphus/0 sisyphus/git/0.git
# If you have public-inbox 1.1+ installed, you may
# initialize and index your mirror using the following commands:
public-inbox-init -V2 sisyphus sisyphus/ http://lore.altlinux.org/sisyphus \
sisyphus@altlinux.ru sisyphus@altlinux.org sisyphus@lists.altlinux.org sisyphus@lists.altlinux.ru sisyphus@lists.altlinux.com sisyphus@linuxteam.iplabs.ru sisyphus@list.linux-os.ru
public-inbox-index sisyphus
Example config snippet for mirrors.
Newsgroup available over NNTP:
nntp://lore.altlinux.org/org.altlinux.lists.sisyphus
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git