Git Product home page Git Product logo

Comments (12)

dubuyifang avatar dubuyifang commented on July 17, 2024 1

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.

stof avatar stof commented on July 17, 2024 1

you mean when running composer ? Packages installed with composer global are not autoloaded while running composer (unless they are composer plugins)

from polyfill.

nicolas-grekas avatar nicolas-grekas commented on July 17, 2024

Are you on freebsd? You need to install symfony/polyfill-iconv if you happen to not have the iconv extension installed.

from polyfill.

dubuyifang avatar dubuyifang commented on July 17, 2024

On ox s 10.10.5,How to install symfony/polyfill-iconv ?

from polyfill.

xabbuh avatar xabbuh commented on July 17, 2024

@dubuyifang Doesn't executing composer require symfony/polyfill-iconv work for you?

from polyfill.

nicolas-grekas avatar nicolas-grekas commented on July 17, 2024

but you'd better install ext-iconv if you can!

from polyfill.

dubuyifang avatar dubuyifang commented on July 17, 2024

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.

nicolas-grekas avatar nicolas-grekas commented on July 17, 2024

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.

dubuyifang avatar dubuyifang commented on July 17, 2024

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.

stof avatar stof commented on July 17, 2024

@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.

xabbuh avatar xabbuh commented on July 17, 2024

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.

Mykola-Veryha avatar Mykola-Veryha commented on July 17, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.