<?xml version="1.0"?>
<?xml-stylesheet
href="http://www.w3.org/2000/08/w3c-synd/style.css" type="text/css"
?>
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns="http://purl.org/rss/1.0/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:admin="http://webns.net/mvcb/" xmlns:content="http://purl.org/rss/1.0/modules/content/">
    <channel rdf:about="http://pear.php.net/bugs/search.php">
    <title>PEAR Bug Search Results</title>
    <link>http://pear.php.net/bugs/search.php?cmd=display&amp;package_name%5B0%5D=Crypt_Xtea</link>
    <description>Search Results</description>
    <dc:language>en-us</dc:language>
    <dc:creator>pear-webmaster@lists.php.net</dc:creator>
    <dc:publisher>pear-webmaster@lists.php.net</dc:publisher>
    <admin:generatorAgent rdf:resource="http://pear.php.net/bugs"/>
    <sy:updatePeriod>hourly</sy:updatePeriod>
    <sy:updateFrequency>1</sy:updateFrequency>
    <sy:updateBase>2000-01-01T12:00+00:00</sy:updateBase>
    <items>
     <rdf:Seq>
      <rdf:li rdf:resource="http://pear.php.net/bug/21208" />

     </rdf:Seq>
    </items>
  </channel>

  <image rdf:about="http://pear.php.net/gifs/pearsmall.gif">
    <title>PEAR Bugs</title>
    <url>http://pear.php.net/gifs/pearsmall.gif</url>
    <link>http://pear.php.net/bugs</link>
  </image>

    <item rdf:about="http://pear.php.net/bug/21208">
      <title>Crypt_Xtea: Bug 21208 [Assigned] use a proper __construct</title>
      <link>http://pear.php.net/bugs/21208</link>
      <content:encoded><![CDATA[<pre>Crypt_Xtea Bug
Reported by jefkin
2017-05-05T17:36:00+00:00
PHP: HEAD SVN-2017-05-05 OS: CentOS Package Version: 1.1.0

Description:
------------
This should be a one line change:

file: Crypt/Xtea.php

line 145;

for compatibility for php 7.0 and up, replace Crypt_Xtea() with 
__construct().

On my local side I also updated the comment on line 136 to 
read:

     // {{{ Crypt_Xtea::__construct()


I noticed that the php version you list on this form doesn't 
include php7.0 and so I understand you may reject this bug for 
that reason, but the change I'm requesting, would ensure that 
should 7.0 begin to be supported, that Crypt Xtea would work as 
expected out of the box.  If you do reject it, I'll simply hack it in 
on my local copy.

Test script:
---------------
Any require or require_once of Xtea in a php script running on php 7.0 or higher will give a very ugly hard to trap warning. E.g. the test script.


&lt;?php
	require_once 'Crypt/Xtea.php';

	$data = 'abcdefghijklmnopqrstuvwxyz';
	$key = '0123456789abcdef';

	$crypt = new Crypt_Xtea();
	$encrypted = $crypt-&gt;encrypt($data, $key);
	$decrypted = $crypt-&gt;encrypt($encrypt, $key);
?&gt;

Expected result:
----------------
Xtea to run correctly.

Actual result:
--------------
PHP Fatal error:  require(): Failed opening required 
'Crypt/Xtea.php' (include_path='/usr/share/php5/PEAR') in 
/srv/www/virthosts/publix/sites/all/libraries/Xtea/Xtea.php on line 
10</pre>]]></content:encoded>
      <description><![CDATA[<pre>Crypt_Xtea Bug
Reported by jefkin
2017-05-05T17:36:00+00:00
PHP: HEAD SVN-2017-05-05 OS: CentOS Package Version: 1.1.0

Description:
------------
This should be a one line change:

file: Crypt/Xtea.php

line 145;

for compatibility for php 7.0 and up, replace Crypt_Xtea() with 
__construct().

On my local side I also updated the comment on line 136 to 
read:

     // {{{ Crypt_Xtea::__construct()


I noticed that the php version you list on this form doesn't 
include php7.0 and so I understand you may reject this bug for 
that reason, but the change I'm requesting, would ensure that 
should 7.0 begin to be supported, that Crypt Xtea would work as 
expected out of the box.  If you do reject it, I'll simply hack it in 
on my local copy.

Test script:
---------------
Any require or require_once of Xtea in a php script running on php 7.0 or higher will give a very ugly hard to trap warning. E.g. the test script.


&lt;?php
	require_once 'Crypt/Xtea.php';

	$data = 'abcdefghijklmnopqrstuvwxyz';
	$key = '0123456789abcdef';

	$crypt = new Crypt_Xtea();
	$encrypted = $crypt-&gt;encrypt($data, $key);
	$decrypted = $crypt-&gt;encrypt($encrypt, $key);
?&gt;

Expected result:
----------------
Xtea to run correctly.

Actual result:
--------------
PHP Fatal error:  require(): Failed opening required 
'Crypt/Xtea.php' (include_path='/usr/share/php5/PEAR') in 
/srv/www/virthosts/publix/sites/all/libraries/Xtea/Xtea.php on line 
10</pre>]]></description>
      <dc:date>2017-05-09T09:07:25+00:00</dc:date>
      <dc:creator>jefkin &amp;#x61;&amp;#116; gmail &amp;#x64;&amp;#111;&amp;#x74; com</dc:creator>
      <dc:subject>Crypt_Xtea Bug</dc:subject>
    </item>
</rdf:RDF>
