<?xml version="1.0" encoding="UTF-8" ?>

<bugzilla version="5.2"
          urlbase="https://bugzilla.altlinux.org/"
          
          maintainer="jenya@basealt.ru"
>

    <bug>
          <bug_id>19888</bug_id>
          
          <creation_ts>2009-05-01 15:46:22 +0400</creation_ts>
          <short_desc>/usr/bin/php не реагирует на изменения в /etc/php/5.2.5/cli/php.ini</short_desc>
          <delta_ts>2009-05-09 01:17:35 +0400</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>3</classification_id>
          <classification>Distributions</classification>
          <product>Branch 4.1</product>
          <component>php5</component>
          <version>unspecified</version>
          <rep_platform>all</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>17455</dup_id>
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P3</priority>
          <bug_severity>critical</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="stalker">stalker</reporter>
          <assigned_to name="Grigory Batalov">bga</assigned_to>
          <cc>evg</cc>
          
          <qa_contact name="qa-4.1@altlinux.org">qa-4.1</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>90586</commentid>
    <comment_count>0</comment_count>
    <who name="stalker">stalker</who>
    <bug_when>2009-05-01 15:46:22 +0400</bug_when>
    <thetext>Долго не мог понять почему молча умирает poller от cacti и совсем при этом не выводит ошибок. Запустил под strace и обнаружил что php ищет свой php.ini не там где он лежит на самом деле,а именно:

lstat(&quot;/etc&quot;, {st_mode=S_IFDIR|0755, st_size=8192, ...}) = 0
lstat(&quot;/etc/alternatives&quot;, {st_mode=S_IFDIR|0755, st_size=59, ...}) = 0
lstat(&quot;/etc/alternatives/links&quot;, {st_mode=S_IFDIR|0755, st_size=8192, ...}) = 0
lstat(&quot;/etc/alternatives/links/|usr|bin|php&quot;, {st_mode=S_IFLNK|0777, st_size=18, ...}) = 0
readlink(&quot;/etc/alternatives/links/|usr|bin|php&quot;, &quot;/usr/bin/php-5.2.5&quot;..., 4095) = 18
lstat(&quot;/usr&quot;, {st_mode=S_IFDIR|0755, st_size=155, ...}) = 0
lstat(&quot;/usr/bin&quot;, {st_mode=S_IFDIR|0755, st_size=61440, ...}) = 0
lstat(&quot;/usr/bin/php-5.2.5&quot;, {st_mode=S_IFREG|0755, st_size=28768, ...}) = 0
access(&quot;/usr/bin/php-5.2.5&quot;, X_OK)      = 0
open(&quot;/usr/bin/php-cli.ini&quot;, O_RDONLY)  = -1 ENOENT (No such file or directory)
open(&quot;/etc/php-cli.ini&quot;, O_RDONLY)      = -1 ENOENT (No such file or directory)
open(&quot;/usr/bin/php.ini&quot;, O_RDONLY)      = -1 ENOENT (No such file or directory)
open(&quot;/etc/php.ini&quot;, O_RDONLY)          = -1 ENOENT (No such file or directory)
brk(0x64a000)                           = 0x64a000
brk(0x66b000)                           = 0x66b000
brk(0x68c000)                           = 0x68c000

если сделать симлинк с 
ll php.ini
lrwxrwxrwx 1 root root 26 May  1 15:31 php.ini -&gt; /etc/php/5.2.5/cli/php.ini

То всё начинает работать
rpm -q php5
php5-5.2.5-alt1.M41.3</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>91001</commentid>
    <comment_count>1</comment_count>
    <who name="Grigory Batalov">bga</who>
    <bug_when>2009-05-09 01:17:35 +0400</bug_when>
    <thetext>Уже было

*** This bug has been marked as a duplicate of bug 17455 ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>