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

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

    <bug>
          <bug_id>44233</bug_id>
          
          <creation_ts>2022-11-07 19:54:12 +0300</creation_ts>
          <short_desc>Не правильно указаны require_once в pear-Net_SMPP_Client</short_desc>
          <delta_ts>2022-11-07 19:54:12 +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>pear-Net_SMPP_Client</component>
          <version>unstable</version>
          <rep_platform>x86_64</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P5</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Alexandr Shashkin">dutyrok</reporter>
          <assigned_to name="Nikolay A. Fetisov">naf</assigned_to>
          <cc>naf</cc>
          
          <qa_contact>qa-sisyphus</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>217021</commentid>
    <comment_count>0</comment_count>
    <who name="Alexandr Shashkin">dutyrok</who>
    <bug_when>2022-11-07 19:54:12 +0300</bug_when>
    <thetext>Версия программы:
=================
pear-Net_SMPP_Client-0.4.1-alt2

Шаги, приводящие к ошибке:
==========================
1) Установить php8.1, pear-core, pear-Net_SMPP_Client
2) Создать файл instance.php со следующим содержимым:
&lt;?php
require_once &apos;Net/SMPP/Client.php&apos;;
$smsc = new Net_SMPP_Client(&apos;smpp.example.com&apos;, 3204);
echo &quot;success\n&quot;;
?&gt;
3) Выполнить его: php8.1 instance.php

Результат:
==========
PHP Warning:  require_once(Net/SMPP.php): Failed to open stream: No such file or directory in /usr/share/php/pear/Net/SMPP/Client.php on line 29
PHP Fatal error:  Uncaught Error: Failed opening required &apos;Net/SMPP.php&apos; (include_path=&apos;./:/usr/lib64/php/:/usr/lib64/php/8.1.12/:/usr/share/php/pear/:/usr/share/php/modules/:/usr/share/php/8.1.12/modules/&apos;) in /usr/share/php/pear/Net/SMPP/Client.php:29
Stack trace:
#0 /home/test/instance.php(2): require_once()
#1 {main}
  thrown in /usr/share/php/pear/Net/SMPP/Client.php on line 29

Ожидаемый результат:
====================
В файле /usr/share/php/pear/Net/SMPP/Client.php вместо Net/SMPP.php и Net/SMPP/Vendor.php в require_once указаны Net/Net/SMPP.php и Net/Net/SMPP/Vendor.php. Так как php файлы модуля pear-Net_SMPP лежат в /usr/share/php/pear/Net/Net</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>