Comments (12)
I called php -i and display
Build Date => Aug 29 2015 16:23:18
Configure Command => './configure' '--without-iconv'
Server API => Command Line Interface
Virtual Directory Support => disabled
Configuration File (php.ini) Path => /usr/local/lib
Configuration
Core
PHP Version => 5.6.10
Directive => Local Value => Master Value
allow_url_fopen => On => On
allow_url_include => Off => Off
always_populate_raw_post_data => 0 => 0
arg_separator.input => & => &
arg_separator.output => & => &
asp_tags => Off => Off
auto_append_file => no value => no value
auto_globals_jit => On => On
auto_prepend_file => no value => no value
browscap => no value => no value
default_charset => UTF-8 => UTF-8
default_mimetype => text/html => text/html
disable_classes => no value => no value
disable_functions => no value => no value
display_errors => STDOUT => STDOUT
display_startup_errors => Off => Off
doc_root => no value => no value
docref_ext => no value => no value
docref_root => no value => no value
enable_dl => On => On
enable_post_data_reading => On => On
error_append_string => no value => no value
error_log => no value => no value
error_prepend_string => no value => no value
error_reporting => no value => no value
exit_on_timeout => Off => Off
expose_php => On => On
extension_dir => /usr/local/lib/php/extensions/no-debug-non-zts-20131226 => /usr/local/lib/php/extensions/no-debug-non-zts-20131226
file_uploads => On => On
highlight.comment => #FF8000 => #FF8000
highlight.default => #0000BB => #0000BB
highlight.html => #000000 => #000000
highlight.keyword => #007700 => #007700
highlight.string => #DD0000 => #DD0000
html_errors => Off => Off
ignore_repeated_errors => Off => Off
ignore_repeated_source => Off => Off
ignore_user_abort => Off => Off
implicit_flush => On => On
include_path => .:/usr/local/lib/php => .:/usr/local/lib/php
Maybe something wrong in the Configuration File,But I failed to find out the correct problem.
from polyfill.
you mean when running composer ? Packages installed with composer global
are not autoloaded while running composer (unless they are composer plugins)
from polyfill.
Are you on freebsd? You need to install symfony/polyfill-iconv if you happen to not have the iconv extension installed.
from polyfill.
On ox s 10.10.5,How to install symfony/polyfill-iconv ?
from polyfill.
@dubuyifang Doesn't executing composer require symfony/polyfill-iconv
work for you?
from polyfill.
but you'd better install ext-iconv if you can!
from polyfill.
It had been installed ,the iconv version is iconv (GNU libiconv 1.11)
Copyright (C) 2000-2006 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Written by Bruno Haible.
I had tried to call camposer require command,but it always display the same error
$ composer require
Fatal error: Call to undefined function Symfony\Polyfill\Mbstring\iconv() in phar:///usr/local/Cellar/composer/1.0.0-beta1/libexec/composer.phar/vendor/symfony/polyfill-mbstring/Mbstring.php on line 513
from polyfill.
you need the iconv extension loaded in your php. You can check it's enabled with php --ri iconv
, which should display iconv support => enabled
from polyfill.
I tried php --ri iconv, but display Extension 'iconv' not present.
I had reinstall libiconv 1.14 and executing php --ri /usr/local/Cellar/libiconv/1.14/bin/iconv ,but display the same result.
from polyfill.
@dubuyifang installing libiconv on your system does not install the PHP extension, but only the system library (which is indeed a dependency of the PHP extension).
On Debian or Ubuntu, installing the extension is done with apt-get install php5-iconv
. I don't know about other systems.
from polyfill.
Well, your PHP installation is built with the --without-iconv
option which explains why the functions provided by this PHP extension are not available.
Though I think you will probably gain more feedback on how to install that extension your system on a dedicated support channel (maybe StackOverflow or some special forum for Mac users).
from polyfill.
I have installed the
composer global require symfony/polyfill-iconv
and I still have an error. Is there any way to use the polyfill-iconv with composer?
$ composer global show -i
Fatal error: Uncaught Error: Call to undefined function Symfony\Polyfill\Mbstring\iconv() in phar:///usr/bin/composer/vendor/symfony/polyfill-mbstring/Mbstring.php:714
Stack trace:
#0 phar:///usr/bin/composer/vendor/symfony/polyfill-mbstring/bootstrap.php(102): Symfony\Polyfill\Mbstring\Mbstring::mb_strwidth(' [Composer\\Exc...', 'ASCII')
#1 phar:///usr/bin/composer/vendor/symfony/console/Helper/Helper.php(54): mb_strwidth(' [Composer\\Exc...', 'ASCII')
#2 phar:///usr/bin/composer/vendor/symfony/console/Application.php(646): Symfony\Component\Console\Helper\Helper::strlen(' [Composer\\Exc...')
#3 phar:///usr/bin/composer/vendor/symfony/console/Application.php(127): Symfony\Component\Console\Application->renderException(Object(Composer\Exception\NoSslException), Object(Symfony\Component\Console\Output\StreamOutput))
#4 phar:///usr/bin/composer/src/Composer/Console/Application.php(128): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\StringInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#5 phar:///usr/bin/composer/src/Composer/Command/GlobalCommand.php(111): Composer\Console\Application->run(Object(Symfony\Component\Console\Input\StringInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#6 phar:///usr/bin/composer/vendor/symfony/console/Application.php(835): Composer\Command\GlobalCommand->run(Object(Symfony\Component\Console\Input\StringInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#7 phar:///usr/bin/composer/vendor/symfony/console/Application.php(185): Symfony\Component\Console\Application->doRunCommand(Object(Composer\Command\GlobalCommand), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#8 phar:///usr/bin/composer/src/Composer/Console/Application.php(327): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#9 phar:///usr/bin/composer/vendor/symfony/console/Application.php(117): Composer\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#10 phar:///usr/bin/composer/src/Composer/Console/Application.php(128): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#11 phar:///usr/bin/composer/bin/composer(67): Composer\Console\Application->run()
#12 /usr/bin/composer(29): require('phar:///usr/bin...')
#13 {main}
thrown in phar:///usr/bin/composer/vendor/symfony/polyfill-mbstring/Mbstring.php on line 714
from polyfill.
Related Issues (20)
- symfony/polyfill-mbstring can no longer be installed (as of today) HOT 7
- mb_strlen returns 0 instead of 1 for the char chr(254) HOT 7
- polyfill-mbstring: mb_check_encoding crashes for array input
- normalizer_is_normalized has nullable string parameter HOT 2
- [Tests] Polyfills not loaded HOT 5
- Polyfill DATE_ISO8601_EXPANDED HOT 3
- Missing polyfills for PHP 8.3 HOT 1
- #[\SensitiveParameter] is available since PHP 8.2, but loaded on 8.1 HOT 1
- Backport fix for ini_parse_quantity from PHP HOT 2
- Polyfill PHP 8.3 is incomplete HOT 3
- Missing str_increment and str_decrement polyfill
- [PHP 8.4] `mb_trim`, `mb_ltrim`, and `mb_rtrim` polyfills HOT 1
- Intl Collator types are (slightly) incoherent HOT 2
- ini_parse_quantity not defined when using the polyfill HOT 2
- Inconsistency of composer autoload and packages after removing polyfill package HOT 1
- [PHP 8.4] `mb_ucfirst()` and `mb_lcfirst()` polyfills HOT 1
- Inconsistent function calls in test cases HOT 1
- Function signature checking should be improved HOT 1
- `Stringable` polyfill has no return type, breaks tests and static analysis HOT 4
- [PHP 8.4] composer require polyfill-php84 is failing HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from polyfill.