Package: php5-json
Version: 1.3.1+dfsg-1
Version: 1.3.1+dfsg-2
uname -a: Linux host 3.10-2-amd64 #1 SMP Debian 3.10.5-1 (2013-08-07) x86_64 
GNU/Linux

### Connection with firephp (and firebug).
Before sending, firephp::log encodes the variable with json_encode.
There might occur an issue with json_encode. The json_encode may fail to encode 
the input variable. This might happen in a string with unencoded unicode or a 
string with some ill encoded characters.

### Behavior in previous version of php (5.4.4)
- In firebug instead of the value with the wrong coding white space appears.
- After the wrong value firebug continues to display next values which arrived 
from firephp.

### Behavior with separate php5-json
- When the ill encoded value arrives to firebug, following error message 
appears:

        SyntaxError: JSON.parse: unexpected character
        chrome://firephp/content/lib/renderer.js
        Line 159 

- After this listing logs from firephp stops.

### Headers sent by firephp
I can see in Firebug header X-Wf-1-1-1-2:

    
[{"Type":"LOG","Label":"$someVar","File":"/home/GIT/www/some/path/someFile.php","Line":"156"},]

Which does miss the value part and thus is not a valid JSON, which is why the 
rendering fails.

The header with the correct message, which gets printed:

    [{"Type":"LOG","Label":"POST 
data","File":"/home/GIT/www/some/path/someFile.php","Line":"22"},{"data":{"myarray":["117"]},"getA":"true","getB":"true"}]

### Software versions: 
Debian testing jessie    
Linux host 3.10-2-amd64 #1 SMP Debian 3.10.5-1 (2013-08-07) x86_64 GNU/Linux    
php5 5.5.1+dfsg-2     
php5-json 1.3.1+dfsg-1    
iceweasel 22.0    
FirePHPCore-0.3.2   
Firebug 1.11.4   
Firephp 0.7.2    

I understand that there was an 'unexpected character'. But I'd just like to 
move on and see the following messages. Not to stop on the first unexpected 
character.
What shall I do to get back to the previous behavior?


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to