Date: Thu, 24 Sep 2015 09:01:55 +0000 From: bugzilla-noreply@freebsd.org To: freebsd-ports-bugs@FreeBSD.org Subject: [Bug 203304] [patch] php56: change default include_path for better matching FreeBSD packages Message-ID: <bug-203304-13@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=203304 Bug ID: 203304 Summary: [patch] php56: change default include_path for better matching FreeBSD packages Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Keywords: patch Severity: Affects Only Me Priority: --- Component: Individual Port(s) Assignee: freebsd-ports-bugs@FreeBSD.org Reporter: ports@toco-domains.de Keywords: patch Created attachment 161323 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=161323&action=edit path to modify include_path Hello, the ports-tree provide a big number of php-scripts to use. mail/phpmailer, www/dddbl, www/pear-twig and many many more. PHP brings a configuration "include_path", which is used, when including files in PHP code. It defaults to ".:/usr/local/share/pear". This means, that PHP looks first in the current folder "." to include the file. If the file is not there, it will look secondly into /usr/local/share/pear. Many PHP libraries are installed to /usr/local/share. If a user wants to use the installed libs from the ports-tree, he has to modify the include_path in its scripts (every time). This is a minor annoyance, which is changed by the provided patch. The patch modify the php.ini files to add the /usr/local/share path to the include_path. A default PHP installation will be able to use libs installed with pkg or ports-tree by default. The patch is just for PHP 5.6 because i don't know if you agree with my option. If you agree, i will wrote the patch for the other PHP versions in the ports-tree. Greetings, Torsten -- You are receiving this mail because: You are the assignee for the bug.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-203304-13>