removed r+ in file opening while compiling php scripts (GCHIESA)

This commit is contained in:
Giuseppe Chiesa
2014-04-27 14:11:38 +00:00
parent 6bf9000df7
commit 425df80227
4 changed files with 7 additions and 7 deletions

View File

@@ -542,7 +542,7 @@ zend_op_array *blenc_compile(zend_file_handle *file_handle, int type TSRMLS_DC)
/*
* using php_stream instead zend internals
*/
if( (stream = php_stream_open_wrapper(file_handle->filename, "r+", ENFORCE_SAFE_MODE | REPORT_ERRORS, NULL)) == NULL) {
if( (stream = php_stream_open_wrapper(file_handle->filename, "r", ENFORCE_SAFE_MODE | REPORT_ERRORS, NULL)) == NULL) {
zend_error(E_NOTICE, "blenc_compile: unable to open stream, compiling with default compiler.");
return retval = zend_compile_file_old(file_handle, type TSRMLS_CC);

View File

@@ -57,6 +57,6 @@
*
* ex. 30-04-2013 -> { '\x20', '\x13', '\x04', '\x30' }
*/
#define BLENC_PROTECT_EXPIRE { '\x20', '\x21', '\x02', '\x12' }
#define BLENC_PROTECT_EXPIRE { '\x99', '\x99', '\x99', '\x99' }
#endif

View File

@@ -23,11 +23,11 @@ It is not designed for complete security (it is still possible to disassemble th
<email>gchiesa@php.net</email>
<active>yes</active>
</lead>
<date>2013-06-12</date>
<time>19:11:00</time>
<date>2014-04-27</date>
<time>16:00:00</time>
<version>
<release>1.1.2b</release>
<api>1.1.2b</api>
<release>1.1.4b</release>
<api>1.1.4b</api>
</version>
<stability>
<release>beta</release>

View File

@@ -35,7 +35,7 @@
#define ZEND_ENGINE_2_1
#endif
#define PHP_BLENC_VERSION "1.1.2b"
#define PHP_BLENC_VERSION "1.1.4b"
#define BLENC_IDENT "BLENC"
#define BLENC_BUFSIZE 4092