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

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

    <bug>
          <bug_id>30650</bug_id>
          
          <creation_ts>2015-01-14 19:44:11 +0300</creation_ts>
          <short_desc>В PHP есть патч, изменяющий поведение при делении на ноль с E_WARNIONG на E_ERROR</short_desc>
          <delta_ts>2015-01-16 16:05:44 +0300</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>4</classification_id>
          <classification>Development</classification>
          <product>Sisyphus</product>
          <component>php5</component>
          <version>unstable</version>
          <rep_platform>all</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P3</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="thelosik">thelosik</reporter>
          <assigned_to name="Anton Farygin">rider</assigned_to>
          <cc>rider</cc>
          
          <qa_contact>qa-sisyphus</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>149678</commentid>
    <comment_count>0</comment_count>
    <who name="thelosik">thelosik</who>
    <bug_when>2015-01-14 19:44:11 +0300</bug_when>
    <thetext>В PHP есть патч, изменяющие поведение при делении на ноль с E_WARNIONG на E_ERROR.

Идеологически наверное так правильно, но это поведение мешает массе скриптов. 

Хотелось бы или выключить или опцию в конфиге.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>149689</commentid>
    <comment_count>1</comment_count>
    <who name="Andrey Cherepanov">cas</who>
    <bug_when>2015-01-15 13:41:38 +0300</bug_when>
    <thetext>На Sisyphus.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>149692</commentid>
    <comment_count>2</comment_count>
    <who name="Anton Farygin">rider</who>
    <bug_when>2015-01-15 14:14:55 +0300</bug_when>
    <thetext>Ни разу не сталкивался с таким падением в скриптах, видимо мне попадается достаточно хороший код.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>149693</commentid>
    <comment_count>3</comment_count>
    <who name="Anton Farygin">rider</who>
    <bug_when>2015-01-15 14:19:09 +0300</bug_when>
    <thetext>Есть и обратное мнение, почему собственно так было сделано:

https://bugzilla.altlinux.org/show_bug.cgi?id=6348</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>149699</commentid>
    <comment_count>4</comment_count>
    <who name="thelosik">thelosik</who>
    <bug_when>2015-01-15 15:55:00 +0300</bug_when>
    <thetext>(In reply to comment #3)
&gt; Есть и обратное мнение, почему собственно так было сделано:
&gt; https://bugzilla.altlinux.org/show_bug.cgi?id=6348

Да, видел. В сферическом в вакууме идеальном мире -- решение, безусловно, правильное.

Но есть масса унаследованного кода. Да и смысл прерывать? Предупредить, если кому надо -- перехватит. А в большинстве случаев PHP-скрипты -- совсем не та задача, где от случайно</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>149700</commentid>
    <comment_count>5</comment_count>
    <who name="Anton Farygin">rider</who>
    <bug_when>2015-01-15 15:57:34 +0300</bug_when>
    <thetext>будет исправлено в след. версии</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>149701</commentid>
    <comment_count>6</comment_count>
    <who name="thelosik">thelosik</who>
    <bug_when>2015-01-15 15:58:44 +0300</bug_when>
    <thetext>(In reply to comment #5)
&gt; будет исправлено в след. версии

Спасибо 8)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>149741</commentid>
    <comment_count>7</comment_count>
    <who name="Repository Robot">repository-robot</who>
    <bug_when>2015-01-16 16:05:44 +0300</bug_when>
    <thetext>php5-5.5.20-alt1 -&gt; sisyphus:

* Wed Jan 14 2015 Anton Farygin &lt;rider@altlinux&gt; 5.5.20-alt1
- new version
- behavior when divided by zero is synchronized with the upstream (closes: #30650)</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>