Codeception / Codeception/c3

Could not write error to log file

Abierto
#41 0 comentarios 0 reacciones 0 asignados Ver en GitHub
Lenguaje dominante
PHP
Estrellas
73
Forks
46
Métricas de merge de PR
Sin PR fusionados en 30 d

Descripción

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

Guía de contribución

No hay ninguna guía de contribución indexada para este repositorio

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.