|  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
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
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.
Bug Type:
From: investfund2007 at yandex dot ru
New email:
PHP Version: OS:


 [2014-01-28 09:15 UTC] investfund2007 at yandex dot ru
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])

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

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


Add a Patch

Pull Requests

Pull requests:

Add a Pull Request


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]
-Status: Open +Status: Feedback -Assigned To: +Assigned To: cmb
 [2021-06-10 16:42 UTC]
Is this still an issue with any of the actively supported PHP

[1] <>
 [2021-06-10 16:42 UTC]
-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-2021 The PHP Group
All rights reserved.
Last updated: Tue Sep 21 03:03:36 2021 UTC