Bug #66592 [Opn->Fbk]: relative paths in PHP_NEW_EXTENSION soruces

From: Date: Thu, 10 Jun 2021 16:42:00 +0000
Subject: Bug #66592 [Opn->Fbk]: relative paths in PHP_NEW_EXTENSION soruces
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-234359@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=66592&edit=1 ID: 66592 Updated by: cmb@php.net Reported by: investfund2007 at yandex dot ru Summary: relative paths in PHP_NEW_EXTENSION soruces -Status: Open +Status: Feedback Type: Bug Package: *Compile Issues Operating System: MacOsX 10.9.1 PHP Version: 5.3.28 -Assigned To: +Assigned To: cmb Block user comment: N Private report: N New Comment: Is this still an issue with any of the actively supported PHP versions[1]? [1] <https://www.php.net/supported-versions.php> Previous Comments: ------------------------------------------------------------------------ [2014-01-28 13:29:04] investfund2007 at yandex dot ru Added version of php ------------------------------------------------------------------------ [2014-01-28 09:15:22] 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 ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=66592&edit=1

« previous php.bugs (#234359) next »