php-5.6

Library not loaded error after brew install php56

走远了吗. 提交于 2019-12-01 00:44:56
问题 I'm upgrading from php5.5 to php5.6 on OSX Mavericks using homebrew. I run brew install php56 Everything runs and completes fine but when I run php -v the following error comes up dyld: Library not loaded: /usr/local/opt/icu4c/lib/libicui18n.53.dylib Referenced from: /usr/local/bin/php Reason: image not found Trace/BPT trap: 5 How do I fix this? 回答1: Try this brew uninstall --ignore-dependencies node icu4c brew install node 回答2: For me simply upgrading php helped. brew upgrade php The

OCI Connect Issue at Windows Server 2012 with PHP Version 5.6.14

大兔子大兔子 提交于 2019-11-29 17:43:20
OCI Connect Based upon the above, it states that one should avoid OCI connection on Windows. Have someone configured it on Windows? I have gone through all other threads, this and this , using Windows Server 2012 with PHP 5.6 and Oracle 11g but still having issue: Call to undefined function oci_connect() I have set the path : c:/instantclient_12_1 Under php.ini , one can see: ;extension=php_oci8.dll extension=php_oci8_11g.dll while under /php/ext there is only file: php_oci8_12c.dll This is the output of phpinfo() to show configure command: cscript /nologo configure.js "--enable-snapshot-build

Switch php versions on commandline ubuntu 16.04

◇◆丶佛笑我妖孽 提交于 2019-11-28 15:12:40
I have installed php 5.6 and and php 7.1 on my Ubuntu 16.04 I know with Apache as my web server, I can do a2enmod php5.6 #to enable php5 a2enmod php7.1 #to enable php7 When I disable php7.1 in Apache modules and enable php 5.6, Apache recognizes the change and uses php 5.6 interpreter as expected. But when I run internal php web server from the commandline: php -S localhost:8888 php handles requests using php 7, how do I switch between php 6.6 and php 7.1 in the commandline ? Interactive switching mode sudo update-alternatives --config php Manual Switching From PHP 5.6 => PHP 7.1 Default PHP 5

OCI Connect Issue at Windows Server 2012 with PHP Version 5.6.14

一个人想着一个人 提交于 2019-11-28 11:41:47
问题 OCI Connect Based upon the above, it states that one should avoid OCI connection on Windows. Have someone configured it on Windows? I have gone through all other threads, this and this, using Windows Server 2012 with PHP 5.6 and Oracle 11g but still having issue: Call to undefined function oci_connect() I have set the path : c:/instantclient_12_1 Under php.ini , one can see: ;extension=php_oci8.dll extension=php_oci8_11g.dll while under /php/ext there is only file: php_oci8_12c.dll This is

Install php5.6 in Debian 9

筅森魡賤 提交于 2019-11-27 18:00:01
How to install php5.6 in the Debian 9 The following packages have unmet dependencies: libapache2-mod-php5 : Depends: libdb5.1 but it is not installable Depends: libonig2 (>= 5.2.0) but it is not installable Depends: libssl1.0.0 (>= 1.0.1) but it is not installable Depends: apache2-mpm-prefork but it is not installable or apache2-mpm-itk but it is not installable Depends: php5-cli but it is not going to be installed E: Unable to correct problems, you have held broken packages. You can use the packages released by Ondřej Surý , see deb.sury.org Open the terminal and run the following command:

Laravel 5 controller sending JSON integer as string

折月煮酒 提交于 2019-11-27 12:42:25
On my development server the JSON response from the Laravel 5 controller shows the data in the correct types. e.g imdb_rating: 7.6 imdb_votes: 6271 But on the production server, the JSON response is sent back as strings. imdb_rating: "7.60" imdb_votes: "6271" Both development and production have the same version of PHP installed (5.6.11-1). Any ideas on what may be causing this behaviour? Make sure to use MySQL Native Driver which will support native data types. It is possible to convert integer and float columns back to PHP numbers by setting the MYSQLI_OPT_INT_AND_FLOAT_NATIVE connection

cURL file uploads not working anymore after upgrade from PHP 5.5 to 5.6

|▌冷眼眸甩不掉的悲伤 提交于 2019-11-27 11:41:51
I've got a cURL upload that fails after upgrading from PHP 5.5 to 5.6: $aPost = array( 'file' => "@".$localFile, 'default_file' => 'html_version.html', 'expiration' => (2*31*24*60*60) ) $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $apiurl); curl_setopt($ch, CURLOPT_TIMEOUT, 120); curl_setopt($ch, CURLOPT_BUFFERSIZE, 128); curl_setopt($ch, CURLOPT_POSTFIELDS, $aPost); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); $sResponse = curl_exec ($ch); The file seems to be empty on the target system. Actually I found the answer while starting the question. There is a new Variable included with curl

how to fix stream_socket_enable_crypto(): SSL operation failed with code 1

只谈情不闲聊 提交于 2019-11-27 11:07:19
stream_socket_enable_crypto(): SSL operation failed with code 1. OpenSSL Error messages: error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed Im using Laravel 4.2, PHP 5.6, Apache 2.4 I have GoDaddy SSL installed in Amazon ec2 Linux. SSL working fine when i visit the site with https. The error happened when I call my function : <?php public function sendEmail() { \Mail::send ( 'emails.code.code', $data, function ($sendemail) use($email) { $sendemail->from ( 'info@me.com', 'Me Team' ); $sendemail->to ( $email, '' )->subject ( 'Activate your account' ); } ); } ?> I

Composer update fails while updating from packagist

送分小仙女□ 提交于 2019-11-27 05:24:54
问题 While executing composer install/update I have got the following error from openssl: The "https://packagist.org/packages.json" file could not be downloaded: SSL operation failed with code 1. OpenSSL Error messages: error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed Failed to enable crypto failed to open stream: operation failed https://packagist.org could not be fully loaded, package information was loaded from the local cache and may be out of date I am using:

Xampp MS SQL server PHP 5.6

戏子无情 提交于 2019-11-27 03:35:06
问题 I have a xampp running with PHP 5.6. Normally I use mysql server, but for a script that already exists i need a MS SQL server. I searched on the net and installed SQL server 2012. But now I need the drivers for PHP. Unfornunately I can only find a version that supports 5.4, 5.5.. (http://msdn.microsoft.com/en-us/sqlserver/ff657782.aspx) Is there a way to let this work with 5.6? 回答1: Microsoft recently released a new version (3.2) of the SQL Drivers for PHP which includes compatibility with