Questions tagged [php-7.0]

The successor to PHP 5.6. Use this tag for version-specific issues relating specifically to PHP 7.0.x

92 questions
2
votes
0 answers

Redis.so not loaded using phpredis, php7.0 and redis5.0.5

I have been trying to install phpredis to my aws ec2 instance, but i keep on encountering same error when running 'sudo make test' in the phpredis folder. PHP Warning: PHP Startup: Unable to load dynamic library…
2
votes
2 answers

Passing Multiple Vars to PHP Function

I have an issue passing a variable to a PHP function. I'm running a Raspberry Pi webserver with PHP 7.0.33. Everything runs fine on the raspberry. When I upload my pages to my Godaddy server which is running PHP 7.2 I get the dreaded white page of…
S55
  • 45
  • 6
2
votes
0 answers

Laravel socialite callback method doesn't work

I'm trying to add Facebook authetication via SocialiteProviders, but it looks like method redirectToProvider does work, but handleProviderCallback doesn't. So it redirects me to the facebook/vk page, but there are no callback. Can you explain me,…
music_junkie
  • 189
  • 2
  • 16
2
votes
1 answer

Different number of parameters in function overriding

I want to ask how to enable full error reporting, E_ALL and startup errors in php.ini don't have effect in my case. My code: class A { function funcA(arg1=null, arg2=null, arg3=false, arg4=null) {} } class B extends A { function funcB()…
Asker
  • 93
  • 7
2
votes
1 answer

Partial mocking of static class methods not working

I am trying to mock a single static method on a class. However, if I call the mocked method, the class variables aren't found anymore. It seems like the entire class is mocked and makePartial() is ignored. I created an error case in a blank laravel…
Daniel Becker
  • 771
  • 1
  • 7
  • 25
2
votes
1 answer

Bug with multiple connections to Interbase with php 7

It seems PHP 7 changed a bit the way to work with the Interbase module. Same code on PHP 5.6 works flawlessly. If you have one open link to an Interbase/Firebird database and you open another one to the same database the first link it's closed. One…
NetVicious
  • 3,848
  • 1
  • 33
  • 47
1
vote
0 answers

AH02454: FCGI: attempt to connect to Unix domain socket /run/php/php7.0-fpm.sock (*) failed in docker

Hello first time dockerize my project. Below are my files: docker-compose.yml version: "3" services: apache: build: context: . dockerfile: apache2/Dockerfile container_name: markitplace-php ports: - '8080:80' …
Imran Mushtaq
  • 147
  • 1
  • 2
  • 10
1
vote
1 answer

Navigate course array elements with PREV and NEXT buttons

I'm doing a course content navigation (similar to udemy navigation). In my case in a simplified way through two buttons: prev and next. all this is in PHP I'm getting the course content from the database into an array $contentNodes these…
1
vote
1 answer

How can I sort an alphanumerical Multidimensional Array in php?

I have some json filenames in an multidimensional array, created like this: $files[] = array("name" => $file, "type" => "json") that I want to sort ascending like this: 1.File 2.File 3.File 10.File 11.File If I order them using php sort($files)…
snecserc
  • 615
  • 1
  • 6
  • 19
1
vote
1 answer

Using Docker enviroment variables in server.php

I created my own dockerfile (ubuntu:xenial) using environment variables. This dockerfile uses php7.0-fpm php7.0-xml php7.0-mbstring php-mysql The dockerfiles contains: ENV MYSQL_HOST=192.168.0.2 ENV MYSQL_DBNAME=dbname_xyz ENV …
Florian
  • 11
  • 3
1
vote
0 answers

PHP7 install: libcurl3 and libwebp5 are depends, but not installable

I'm trying to run the following command in order to set up a web server on my Raspberry Pi 3 running Raspbian. sudo apt-get install nginx php7.0-fpm php7.0-curl php7.0-xml php7.0-json php7.0-zip php7.0-mb php7.0-mysql php7.0-mcrypt php7.0-gd When I…
Preloom
  • 11
  • 1
1
vote
0 answers

How to debug leaking a reference?

We have a complex PHP program that's leaking one object. Is there any way to get callback every time reference count is increased so that I could log the stack trace of all locations that take a reference? The program is using RAII programming model…
Mikko Rantalainen
  • 14,132
  • 10
  • 74
  • 112
1
vote
1 answer

Add Cookie SameSite None to Drupal7 and PHP7.0

Is there a good solution to add the Cookie SameSite None configuration to a Drupal7 and PHP7.0 setup? My only finding was to override the file includes/session.inc from : setcookie(session_name(), session_id(), $expire, $params['path'],…
Charles
  • 11,367
  • 10
  • 77
  • 114
1
vote
1 answer

Array in the left part of equating statement. " Unexpected '='" error

I try to run Yii2 app on apache server with 7.0 php version. Yii2 framework package version: yiisoft/yii2 3.0.x-dev 9f215f3 So, when I run my site.loc index page in the browser, I get an error Parse error: syntax error,…
Valik Tralik
  • 69
  • 1
  • 12
1
vote
0 answers

PHP invalid string concatenation with object instance, what error is thrown?

I noticed one of my script fails because of an invalid concatenation between a string and an object instance that doesn't implement __toString(). Here's a minimal reproduction: class Foo { } $bar = new Foo(); echo "Hello " . $bar . "\n"; echo…
lorenzo-s
  • 16,603
  • 15
  • 54
  • 86