php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #75480 magic.c:307:3: warning: argument 1 null where non-null expected [-Wnonnull]
Submitted: 2017-11-03 12:12 UTC Modified: 2017-11-03 14:59 UTC
Votes:1
Avg. Score:3.0 ± 0.0
Reproduced:0 of 0 (0.0%)
From: spam2 at rhsoft dot net Assigned:
Status: Wont fix Package: Compile Warning
PHP Version: 7.1Git-2017-11-03 (Git) OS:
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: spam2 at rhsoft dot net
New email:
PHP Version: OS:

 

 [2017-11-03 12:12 UTC] spam2 at rhsoft dot net
Description:
------------
/home/builduser/rpmbuild/BUILD/php-7.1.11/ext/fileinfo/libmagic/magic.c: In function 'magic_stream':
/home/builduser/rpmbuild/BUILD/php-7.1.11/ext/fileinfo/libmagic/magic.c:307:3: warning: argument 1 null where non-null expected [-Wnonnull]
   (void) utimes(name, utsbuf); /* don't care if loses */
   ^~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /home/builduser/rpmbuild/BUILD/php-7.1.11/main/php_streams.h:25:0,
                 from /home/builduser/rpmbuild/BUILD/php-7.1.11/main/php.h:405,
                 from /home/builduser/rpmbuild/BUILD/php-7.1.11/ext/fileinfo/libmagic/config.h:1,
                 from /home/builduser/rpmbuild/BUILD/php-7.1.11/ext/fileinfo/libmagic/file.h:36,
                 from /home/builduser/rpmbuild/BUILD/php-7.1.11/ext/fileinfo/libmagic/magic.c:28:
/usr/include/sys/time.h:135:12: note: in a call to function 'utimes' declared here
 extern int utimes (const char *__file, const struct timeval __tvp[2])


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2017-11-03 14:58 UTC] kalle@php.net
-Status: Open +Status: Wont fix
 [2017-11-03 14:58 UTC] kalle@php.net
This should be reported and fixed upstream in libmagic
 [2017-11-03 14:58 UTC] kalle@php.net
This should be reported and fixed upstream in libmagic
 [2017-11-03 14:58 UTC] kalle@php.net
This should be reported and fixed upstream in libmagic
 [2017-11-03 14:59 UTC] kalle@php.net
This should be reported and fixed upstream in libmagic
 [2017-11-03 15:14 UTC] spam2 at rhsoft dot net
PHP is using a forked libmagic hence bugs of wrong detected files exists over many years
 
PHP Copyright © 2001-2019 The PHP Group
All rights reserved.
Last updated: Wed Jul 17 18:01:25 2019 UTC