php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #80718 ext/standard/dl.c fallback code path with syntax error
Submitted: 2021-02-06 13:21 UTC Modified: 2021-02-08 14:55 UTC
From: mhei at heimpold dot de Assigned:
Status: Closed Package: Compile Failure
PHP Version: 8.0.2 OS: Linux
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: mhei at heimpold dot de
New email:
PHP Version: OS:

 

 [2021-02-06 13:21 UTC] mhei at heimpold dot de
Description:
------------
Cross-compiling php against arc700 architecture unveiled a syntax error:
 
/builder/shared-workdir/build/sdk/build_dir/target-arc_arc700_glibc/php-8.0.1/ext/standard/dl.c: In function 'php_load_shlib':
/builder/shared-workdir/build/sdk/build_dir/target-arc_arc700_glibc/php-8.0.1/ext/standard/dl.c:250:18: error: 'filename' undeclared (first use in this function); did you mean 'fileno'?
     php_dl_error(filename);
                  ^~~~~~~~
                  fileno

filename is indeed not defined in this function. I'm not so familar with the code and the design goal, maybe it's just enough to drop the entire line?


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2021-02-08 14:55 UTC] cmb@php.net
From a quick look, I think this line[1] is supposed to be

    php_dl_error(path);

[1] <https://github.com/php/php-src/blob/e2c30c6a2ee4968b546e08eb19cb5f483c4c8088/ext/standard/dl.c#L250>
 [2021-02-11 15:50 UTC] nikic@php.net
Automatic comment on behalf of nikita.ppv@gmail.com
Revision: http://git.php.net/?p=php-src.git;a=commit;h=51996868735cd212a5aa6825bedcbb1ac641d2db
Log: Fixed bug #80718
 [2021-02-11 15:50 UTC] nikic@php.net
-Status: Open +Status: Closed
 
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Mon Oct 18 21:03:39 2021 UTC