Codeception / Codeception/c3

Could not write error to log file

Ouverte
#41 0 commentaires 0 réactions 0 personnes assignées Voir sur GitHub
Langage dominant
PHP
Étoiles
73
Forks
46
Métriques de merge des PR
Aucune PR mergée en 30 j

Description

While debugging for this issue https://github.com/Codeception/Codeception/issues/4871, I keep getting message `Could not write error to log file`.
When I traced the cause, it's from here.

https://github.com/Codeception/c3/blob/c7348bbc82da82834fe237c5fb754003ac0fe782/c3.php#L36-L43

Apparently the `c3tmp` directory is always emptied by `__c3_clear()` when the test is executed.

https://github.com/Codeception/c3/blob/c7348bbc82da82834fe237c5fb754003ac0fe782/c3.php#L288-L291

This cause problem because `is_writable` returns true if the file exists and is writable.

http://php.net/manual/en/function.is-writable.php

Guide de contribution

Aucun guide de contribution indexé pour ce dépôt

Évaluation

Cette issue n'a pas encore été évaluée.

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.