php-extension

PHP intl extension in Docker container

末鹿安然 提交于 2020-06-10 03:32:51
问题 I'm trying to load the intl PHP extension in my Docker container, but it doesn't seem to work. Have already tried this https://github.com/docker-library/php/issues/57 but I still get the same error message: configure: error: in `/usr/src/php/ext/intl': configure: error: C++ preprocessor "/lib/cpp" fails sanity check See `config.log' for more details My Docker file looks like this: RUN apt-get -y update \ && apt-get install -y libicu-dev\ && docker-php-ext-configure intl \ && docker-php-ext

PHP Windows extensions won´t load

白昼怎懂夜的黑 提交于 2020-04-07 05:57:51
问题 I'm working on a windows server 2008 R2 machine. I have installed apache 2.2 with php 5.4.25 While trying to enable ldap support for the apache server i found out that the server does not load the extensions. I ran php_info() and this was the result Configuration File (php.ini) Path C:\Windows Loaded configuration file: "C:\php\php.ini extension_dir C:\php\ext I have changed the php.ini to load the extensions, but they are not loaded and they are not visible in the php_info dump. I tried to

Moving Legacy .php url extensions to Laravel

扶醉桌前 提交于 2020-03-05 06:04:15
问题 Is it possible to add a .php extension to laravel routes like so: example.com/mypage.php I am transitioning an old website into Laravel but don't want to change the URL for SEO purposes. I notice there is a similar question that works for .html files in the routing web.php. i.e. Route::get('mypage.html', function () { return 'Hello World'; }); Which works fine but: Route::get('mypage.php', function () { return 'Hello World'; }); returns - No input file specified. Is there any way to resolve

Yii2 Exception: ApcCache requires PHP apc extension to be loaded

て烟熏妆下的殇ゞ 提交于 2020-03-03 12:15:53
问题 I receive the exception when configure the cache components in main configuration of advanced-template frontend, on my php.ini the extension rsults enabled, how I can fix this problem? frontend/config/main.php: 'cache' => [ 'class' => 'yii\caching\ApcCache', 'keyPrefix' => 'myapp', // a unique cache key prefix ], The phpinfo() about apcu: 回答1: Solved by updating the configuration as follow: 'cache' => [ 'class' => 'yii\caching\ApcCache', 'keyPrefix' => 'myapp', // a unique cache key prefix

How to install all required PHP extensions for Laravel?

久未见 提交于 2020-02-12 08:51:39
问题 I need to make my Ubuntu 16.04. Is there a way using the GUI or is the simplest way to do this by using terminal? I have already installed PHP 7.1, MariaDB. I need to enable: OpenSSL PHP Extension PDO PHP Extension Mbstring PHP Extension Tokenizer PHP Extension XML PHP Extension 回答1: Laravel Server Requirements mentions that BCMath , Ctype , JSON , Mbstring , OpenSSL , PDO , Tokenizer and XML extensions are required. Most the extensions are installed and enabled by default. You can run the

How to install all required PHP extensions for Laravel?

会有一股神秘感。 提交于 2020-02-12 08:51:35
问题 I need to make my Ubuntu 16.04. Is there a way using the GUI or is the simplest way to do this by using terminal? I have already installed PHP 7.1, MariaDB. I need to enable: OpenSSL PHP Extension PDO PHP Extension Mbstring PHP Extension Tokenizer PHP Extension XML PHP Extension 回答1: Laravel Server Requirements mentions that BCMath , Ctype , JSON , Mbstring , OpenSSL , PDO , Tokenizer and XML extensions are required. Most the extensions are installed and enabled by default. You can run the

Is it possible to create PHP extensions in Haskell?

人走茶凉 提交于 2020-01-23 04:42:10
问题 Is it possible to create PHP extensions with Haskell? Usually PHP extensions are written using C. Is using Haskell FFI to provide functionality for a stub C extension possible (or even a good idea)? What are the caveats to such an approach? Does Zend perform some magic in the background that would disrupt such a scheme? 回答1: You can certainly do this, though I'm not sure anyone has tried. Haskell interoperates with C via its FFI mechanism, and you can certainly: Call Haskell from C so if you

PHP mbstring doesn't work with Apache on Windows

丶灬走出姿态 提交于 2020-01-23 03:50:27
问题 I have to get PHP 5.4 (32 bit, TS) with mbstring running with Apache 2.4 (32 bit) on Windows. In my httpd.conf I set this: PHPIniDir "c:/php54" LoadModule php5_module "c:/php54/php5apache2_4.dll" AddHandler application/x-httpd-php .php And in my php.ini: extension_dir = "ext" ... extension=php_mbstring.dll Now, when I execute php -m it correctly says that mbstring is loaded: ... libxml mbstring mcrypt ... And php -i spits out a section about mbstring: mbstring Multibyte Support => enabled

PHP extensions not found

守給你的承諾、 提交于 2020-01-15 04:36:09
问题 I have compiled version 5.4.14 of PHP on a linux system using the same configuration I had for a 5.4.13 version. I run the following PHP -i command and I get: [root@localhost php-5.4.14]# php -i PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib64/20100525/fileinfo.so' - /usr/lib64/20100525/fileinfo.so: cannot open shared object file: No such file or directory in Unknown on line 0 PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib64/20100525/json.so' - /usr

PHP extensions not found

落花浮王杯 提交于 2020-01-15 04:36:08
问题 I have compiled version 5.4.14 of PHP on a linux system using the same configuration I had for a 5.4.13 version. I run the following PHP -i command and I get: [root@localhost php-5.4.14]# php -i PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib64/20100525/fileinfo.so' - /usr/lib64/20100525/fileinfo.so: cannot open shared object file: No such file or directory in Unknown on line 0 PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib64/20100525/json.so' - /usr