Skip to content

Commit

Permalink
Ignore URLs in phalcon_require()
Browse files Browse the repository at this point in the history
(cherry picked from commit 0814cdc)
  • Loading branch information
sjinks committed Aug 9, 2013
1 parent ed9735d commit 88f0845
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ext/kernel/require.c
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,9 @@ int PHALCON_FASTCALL phalcon_internal_require(zval *return_value, const zval *re
file_path = Z_STRVAL_P(require_path);

#if PHP_VERSION_ID < 50400
ret = php_stream_open_for_zend_ex(file_path, &file_handle, ENFORCE_SAFE_MODE|USE_PATH|STREAM_OPEN_FOR_INCLUDE TSRMLS_CC);
ret = php_stream_open_for_zend_ex(file_path, &file_handle, ENFORCE_SAFE_MODE|USE_PATH|STREAM_OPEN_FOR_INCLUDE|IGNORE_URL TSRMLS_CC);
#else
ret = php_stream_open_for_zend_ex(file_path, &file_handle, USE_PATH|STREAM_OPEN_FOR_INCLUDE TSRMLS_CC);
ret = php_stream_open_for_zend_ex(file_path, &file_handle, USE_PATH|STREAM_OPEN_FOR_INCLUDE|IGNORE_URL TSRMLS_CC);
#endif

if (likely(ret == SUCCESS)) {
Expand Down

0 comments on commit 88f0845

Please sign in to comment.