Skip to content

file_put_contents fails when there is a colon in filename #3207

Closed
@Renkas

Description

@Renkas

It seems that file_put_contents does not like semicolons in filename.

[PHPUnit_Framework_Exception]
file_put_contents(/var/www/tests/codeception/frontend/_output/tests.codeception.frontend.acceptance.SignupCest:testUserSignup.fail.html): failed to open stream: Protocol error

If I change str_replace at method _failed() in /src/Codeception/Lib/InnerBrowser.php so that single colons will be replaced instead of double colons then everything works fine.

System:

PHP 5.6.20-1~dotdeb+7.1 (cli) (built: Apr 1 2016 04:14:49)
Linux 3.2.0-4-amd64 #1 SMP Debian 3.2.68-1+deb7u6 x86_64 GNU/Linux

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions