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
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please — but make sure to vote on the bug!
Your email address:
MUST BE VALID
Solve the problem:
21 - 17 = ?
Subscribe to this entry?

 
 [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-2024 The PHP Group
All rights reserved.
Last updated: Fri Mar 29 05:01:28 2024 UTC