php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #66592 relative paths in PHP_NEW_EXTENSION sources
Submitted: 2014-01-28 09:15 UTC Modified: 2021-06-20 04:22 UTC
Votes:4
Avg. Score:4.5 ± 0.9
Reproduced:3 of 3 (100.0%)
Same Version:1 (33.3%)
Same OS:0 (0.0%)
From: investfund2007 at yandex dot ru Assigned: cmb (profile)
Status: No Feedback Package: *Compile Issues
PHP Version: 5.3.28 OS: MacOsX 10.9.1
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: investfund2007 at yandex dot ru
New email:
PHP Version: OS:

 

 [2014-01-28 09:15 UTC] investfund2007 at yandex dot ru
Description:
------------
I'm developing php extension and I need to include some cpp sources outside php dir.
...
PHP_NEW_EXTENSION(module,file1.cpp ../../../Common/file2.cpp ../../../Common/file3.cpp, $ext_shared)
...

After running ./configure Makefile contains
...
shared_objects_module = file1.lo .lo .lo
...

I think the bug is somewhere inside acinclude.m4 in function PHP_ADD_SOURCES_X

Test script:
---------------
PHP_ARG_ENABLE(test, test,
[  --enable-test         ])

if test "$PHP_TEST" != "no"; then
  PHP_NEW_EXTENSION(test, file1.cpp ../../../Common/file2.cpp ../../../Common/file3.cpp, $ext_shared)
  AC_DEFINE(HAVE_TEST, 1, [Whether you have test])
fi

Expected result:
----------------
Makefile contains
...
shared_objects_module = file1.lo ../../../Common/file2.lo ../../../Common/file3.lo
...

Actual result:
--------------
shared_objects_module = file1.lo .lo .lo

Patches

Pull Requests

Pull requests:

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2014-01-28 13:29 UTC] investfund2007 at yandex dot ru
-PHP Version: Irrelevant +PHP Version: 5.3.28
 [2014-01-28 13:29 UTC] investfund2007 at yandex dot ru
Added version of php
 [2021-06-10 16:42 UTC] cmb@php.net
-Status: Open +Status: Feedback -Assigned To: +Assigned To: cmb
 [2021-06-10 16:42 UTC] cmb@php.net
Is this still an issue with any of the actively supported PHP
versions[1]?

[1] <https://www.php.net/supported-versions.php>
 [2021-06-10 16:42 UTC] cmb@php.net
-Summary: relative paths in PHP_NEW_EXTENSION soruces +Summary: relative paths in PHP_NEW_EXTENSION sources
 [2021-06-20 04:22 UTC] php-bugs at lists dot php dot net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Re-Opened". Thank you.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Dec 26 14:01:30 2024 UTC