|  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
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:
Solve the problem:
29 + 18 = ?
Subscribe to this entry?

 [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: Thu Sep 23 14:03:43 2021 UTC