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
 [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

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2021-02-08 14:55 UTC] [email protected]
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] [email protected]
-Status: Open +Status: Closed
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Sun Jun 08 21:01:27 2025 UTC