Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 1.0.2

Bug #5537 Use of undefined constant DIME_OTPS_LEN
Submitted: 2005-09-27 14:49 UTC
From: jcuenca at infocasa dot com Assigned: yunosh
Status: Closed Package: Net_DIME
PHP Version: 5.0.5 OS: windows 2000
Roadmaps: (Not assigned)    
Subscription  


 [2005-09-27 14:49 UTC] jcuenca at infocasa dot com
Description: ------------ Use of undefined constant DIME_OTPS_LEN - assumed 'DIME_OTPS_LEN Test script: --------------- $test=' a dime message '; $f = fopen('tmp/dime2.jpg','wb+'); $debug = FALSE; $data = NULL; $dime = new Net_DIME_Message($f,50000,$debug); $test = $dime->decodeData($test); fclose($f); Expected result: ---------------- an image in the file /tmp/dime2.jpg Actual result: -------------- nothing

Comments

 [2006-04-18 18:09 UTC] aarondoom at cookiedoom dot com (Aaron Nixon)
An easy fix. --- ../Test/includes/Net/DIME.php 2006-04-18 11:01:28.000000000 -0700 +++ includes/Net/DIME.php 2005-05-24 15:05:46.000000000 -0700 @@ -290,7 +290,7 @@ class Net_DIME_Record extends PEAR if (!$this->_haveOpts) { $have = strlen($this->Elements[NET_DIME_OPTS]); $this->Elements[NET_DIME_OPTS] .= substr($data,$p,$this->Elements[NET_DIME_OPTS_LEN]-$have); - $this->_haveOpts = (strlen($this->Elements[NET_DIME_OPTS]) == $this->Elements[NET_DIME_OPTS_LEN]); + $this->_haveOpts = (strlen($this->Elements[NET_DIME_OPTS]) == $this->Elements[DIME_OTPS_LEN]); if (!$this->_haveOpts) return NULL; $p += $this->OPTS_LENGTH-$have; }
 [2007-01-22 15:51 UTC] User who submitted this comment has not confirmed identity
If you submitted this note, check your email.If you do not have a message, click here to re-send
MANUAL CONFIRMATION IS NOT POSSIBLE.  Write a message to pear-dev@lists.php.net
to request the confirmation link.  All bugs/comments/patches associated with this

email address will be deleted within 48 hours if the account request is not confirmed!