Giter Club home page Giter Club logo

Comments (3)

jakoch avatar jakoch commented on July 19, 2024

Hey Jose,

i was able to reproduce the issue using this test.

You run into this issue because https:// requests are done using tls:// (version 1).

We need to change this behaviour in SimpleTest and support tlsv1.1 and tlsv1.2,
basically all configured secure transports as listed by stream_get_transports().

Workaround
You could edit the file socket.php and replace tls with tlsv1.1 (tlsv1.2)
in class SimpleSecureSocket function openSocket().

public function openSocket($host, $port, &$error_number, &$error, $timeout)
{
    return parent::openSocket("tlsv1.1://$host", $port, $error_number, $error, $timeout);
}

Reminder: watch the dot in tlsv1.1 - (i tend to write tlsv11, which doesn't work)

After the edit, the test passes:

$ php test_issue34.php
test_issue34.php
OK
Test cases run: 1/1, Passes: 5, Failures: 0, Exceptions: 0

Regards, Jens

from simpletest.

josemanuelsh avatar josemanuelsh commented on July 19, 2024

Great! That worked! Thank you very much!

from simpletest.

jakoch avatar jakoch commented on July 19, 2024

Glad i could help!

Re-opening the issue, because i have to bugfix SimpleTest first, before we can close :)

from simpletest.

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.