Coder Social home page Coder Social logo

Error in executing test script about pushok HOT 8 CLOSED

edamov avatar edamov commented on June 15, 2024
Error in executing test script

from pushok.

Comments (8)

edamov avatar edamov commented on June 15, 2024 1

It's open source library. I worked on it when I had free time and possibility.
I didn't push you to install it, I just wanted to help you. If you want, you can use any other library on your choice.
PR - pull request. You can investigate the issue and send me changes, and I will merge them into the library.

from pushok.

rasmusbe avatar rasmusbe commented on June 15, 2024 1

I just ran the unit tests (including those in #89) in the latest 7.4RC and all tests did pass. BUT the unit tests does not test the curl connections.

But I also see that the constant CURLMOPT_MAX_HOST_CONNECTIONS should be available since PHP 7.0.7 and cURL 7.30.0 so I guess you are running some old version of php or curl.

from pushok.

edamov avatar edamov commented on June 15, 2024

You need to require __DIR__ . '/vendor/autoload.php'

from pushok.

fbartolom avatar fbartolom commented on June 15, 2024

Fine, I did not notice the new directory: now I have:

PHP Warning: Use of undefined constant CURLMOPT_MAX_HOST_CONNECTIONS - assumed 'CURLMOPT_MAX_HOST_CONNECTIONS' (this will throw an Error in a future version of PHP) in /var/www/html/php/push/vendor/edamov/pushok/src/Client.php on line 98
PHP Warning: curl_multi_setopt() expects parameter 2 to be int, string given in /var/www/html/php/push/vendor/edamov/pushok/src/Client.php on line 98
PHP Notice: Trying to access array offset on value of type null in /var/www/html/php/push/vendor/edamov/pushok/src/Response.php on line 191

from pushok.

edamov avatar edamov commented on June 15, 2024

I didn't test the library on PHP 7.4 yet. Seems those errors appeared in the new php version

from pushok.

fbartolom avatar fbartolom commented on June 15, 2024

from pushok.

edamov avatar edamov commented on June 15, 2024

Unfortunately I don't have MacBook and Apple developer account for testing pushes with new PHP version soon.
Maybe you can help me with PR?

from pushok.

fbartolom avatar fbartolom commented on June 15, 2024

I wonder thereafter why you pushed me to install all those pieces of new software, if you did not have any way to test it. What do you mean by PR?

from pushok.

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.