|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #66592 relative paths in PHP_NEW_EXTENSION soruces
Submitted: 2014-01-28 09:15 UTC Modified: 2014-01-28 13:29 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:
Status: Open Package: *Compile Issues
PHP Version: 5.3.28 OS: MacOsX 10.9.1
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.
Block user comment
Status: Assign to:
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
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Fri Apr 16 12:01:23 2021 UTC