entry->fp = php_stream_fopen_tmpfile();
if (!entry->fp) {
if (error) {
- spprintf(error, 0, "phar error: unable to create temprary file");
+ spprintf(error, 0, "phar error: unable to create temporary file");
}
return FAILURE;
}
/* }}} */
/**
- * Removes an entry, either by actually removingit or by marking it.
+ * Removes an entry, either by actually removing it or by marking it.
*/
void phar_entry_remove(phar_entry_data *idata, char **error TSRMLS_DC) /* {{{ */
{
etemp.fp = php_stream_fopen_tmpfile();
if (!etemp.fp) {
if (error) {
- spprintf(error, 0, "phar error: unable to create temorary file");
+ spprintf(error, 0, "phar error: unable to create temporary file");
}
return NULL;
}
buffer = b32;
if (3 != php_stream_read(fp, buffer, 3)) {
- MAPPHAR_ALLOC_FAIL("internal corruption of phar \"%s\" (truncated manifest at script end)")
+ MAPPHAR_ALLOC_FAIL("internal corruption of phar \"%s\" (truncated manifest at stub end)")
}
if ((*buffer == ' ' || *buffer == '\n') && *(buffer + 1) == '?' && *(buffer + 2) == '>') {
int nextchar;
halt_offset += 3;
if (EOF == (nextchar = php_stream_getc(fp))) {
- MAPPHAR_ALLOC_FAIL("internal corruption of phar \"%s\" (truncated manifest at script end)")
+ MAPPHAR_ALLOC_FAIL("internal corruption of phar \"%s\" (truncated manifest at stub end)")
}
if ((char) nextchar == '\r') {
/* if we have an \r we require an \n as well */
if (EOF == (nextchar = php_stream_getc(fp)) || (char)nextchar != '\n') {
- MAPPHAR_ALLOC_FAIL("internal corruption of phar \"%s\" (truncated manifest at script end)")
+ MAPPHAR_ALLOC_FAIL("internal corruption of phar \"%s\" (truncated manifest at stub end)")
}
halt_offset++;
}