NuSphere Forums Forum Index
NuSphere Forums
Reply to topic
Delphi4php and special Language Chars will lost Debug Info


Joined: 22 Apr 2008
Posts: 1
Reply with quote
Hello Dimitri,

my Env: PHP 5.2.5, DBG 2.15.5, IDE Delphi4PHP.

my SampleCode:

Code:

<?php
    header("Content-Type: text/html; charset=utf-8");

    $r = 0;
?>

<html><head>
    <meta http-equiv="Content-Type" content="text/html;charset=utf-8">
    <title>Test</title>
</head>

<body width="100%" height="100%">
    <form name="form2" id="f2" action="test1.php" method="post" accept-charset="utf-8" enctype="multipart/form-data">

        <div>
            <input name="test1" id="test1" type="text" value='öäöäüöäüöüÖÄÜ$%&'/>
            <input name="btn" id="btn" type="submit" value="Submit"/>
        </div>
    </form>
<?php
    var_dump($GLOBALS);
?>
</body>

</html>


my Problem: When i set a breakpoint after submit the form in the PHP Script to view the Locals and Globals Var Window in the IDE, only GLOBALS and POST are displayed (no $_REQUEST, $_SERVER, $_GET or my global Vars. This happens only when i have special Language Characters in the Edit Field. If i write for Example >>TEST<< in the Edit Field, and submit the Form, all Vars are displayed in the IDE Debug Windows Locals and Globals.
The var_dump($GLOBALS); is complete.


The IDE, the Debugger, the Script are all UTF-8.

Is this an Error or have i a Version Confict between PHP and DBG Listener.

Can you help ?

John
View user's profileFind all posts by john14Send private message
Site Admin

Joined: 13 Jul 2003
Posts: 8342
Reply with quote
Quote:
This happens only when i have special Language Characters

Debugger passes all the values in just one string (something like json). So, the bug is somewhere in the IDE in the code that parses the string.
BTW, why don't you try NuSphere PhpED? It handles all the characters pretty well.

_________________
The PHP IDE team
View user's profileFind all posts by dmitriSend private messageVisit poster's website
Delphi4php and special Language Chars will lost Debug Info
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT - 5 Hours  
Page 1 of 1  

  
  
 Reply to topic