mirror of
https://github.com/php/pecl-php-blenc.git
synced 2026-03-24 01:02:13 +01:00
removed r+ in file opening while compiling php scripts (GCHIESA)
This commit is contained in:
2
blenc.c
2
blenc.c
@@ -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);
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user