diff options
| author | Felipe Pena <felipe@php.net> | 2009-01-08 18:46:00 +0000 |
|---|---|---|
| committer | Felipe Pena <felipe@php.net> | 2009-01-08 18:46:00 +0000 |
| commit | 31169e2c1abe0096100bdb9f37e158c7ad9dba7b (patch) | |
| tree | 8befdf98f904cda1cec45702eecd9dae3488ac4a /main/streams/streams.c | |
| parent | 9c6c5c6f987d051c812b00d612ce17c351ae87b9 (diff) | |
| download | php-git-31169e2c1abe0096100bdb9f37e158c7ad9dba7b.tar.gz | |
MFH:
- Fixed bug #47037 (No error when using fopen with emty string)
Patch by Cristian Rodriguez R.
Diffstat (limited to 'main/streams/streams.c')
| -rwxr-xr-x | main/streams/streams.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/main/streams/streams.c b/main/streams/streams.c index 3cbb43021d..ff856ba9c1 100755 --- a/main/streams/streams.c +++ b/main/streams/streams.c @@ -1783,6 +1783,7 @@ PHPAPI php_stream *_php_stream_open_wrapper_ex(char *path, char *mode, int optio } if (!path || !*path) { + php_error_docref(NULL TSRMLS_CC, E_WARNING, "Filename cannot be empty"); return NULL; } |
