Re: cvs: php-src /ext/tidy tidy.c

From: Date: Fri, 16 Apr 2004 21:59:42 +0000
Subject: Re: cvs: php-src /ext/tidy tidy.c
References: 1  Groups: php.cvs 
Request: Send a blank email to php-cvs+get-27096@lists.php.net to get a copy of this message
On Fri, 16 Apr 2004, John Coggeshall wrote: > { > + TSRMLS_FETCH(); > php_error_docref(NULL TSRMLS_CC, E_ERROR, "Could not allocate memory for tidy! (Reason: > %s)", (char *)msg); > } spaces => tabs ? and here too: > - TIDY_APPLY_CONFIG_ZVAL(obj->ptdoc->doc, options); > + if(inputfile) { > + > + if (!(contents = php_tidy_file_to_mem(inputfile, use_include_path TSRMLS_CC))) { > + TIDY_THROW("Cannot Load '%s' into memory %s", inputfile, > (use_include_path) ? "(Using include path)" : ""); > + return; > + } > + > + TIDY_APPLY_CONFIG_ZVAL(obj->ptdoc->doc, options); > > - php_tidy_parse_string(obj, contents, enc TSRMLS_CC); > + php_tidy_parse_string(obj, contents, enc TSRMLS_CC); > + > + efree(contents); > + } > > - efree(contents); > - > } > > TIDY_DOC_METHOD(parseFile) > >

« previous php.cvs (#27096) next »