Windows xampp bug found !!!!

Problems with the Windows version of XAMPP, questions, comments, and anything related.

Windows xampp bug found !!!!

Postby about2mount » 09. June 2015 06:44

When passing HTML in classes and functions the HTML COMMENT "<!-- hidden html -->" Is failing on ONLY THE SECOND INSTANCE it is used, and removes anything after the <!-- stuff --> is used. I'm running the new "Xampp 5.6.8.0" on windows
about2mount
 
Posts: 4
Joined: 04. September 2011 19:13
Location: Texas
Operating System: windows 7 ultimate 64x

Re: Windows xampp bug found !!!!

Postby about2mount » 09. June 2015 07:01

Here is my Comment Out lines i used if this helps:
Code: Select all
<!--begin right menu--> 1ST INSTANCE
 <h3>Groups</h3>
          <ul class="ulclass">
          <li class="liclass"><a href="index.php?page=about"><img src ="assets/img/frnd.png"/> Friends</a></li>

<div class="col_12">
          <!-- <?php $right_model = new right_model;?> --> SECOND INSTANCE FAILS
          <h3>Archives</h3>    EVERYTHIBNG AFTER THIS COMMENT OUT DIES
          <ul class="ulclass">
about2mount
 
Posts: 4
Joined: 04. September 2011 19:13
Location: Texas
Operating System: windows 7 ultimate 64x

Re: Windows xampp bug found !!!!

Postby about2mount » 09. June 2015 07:16

It will work if the "//" or" /*" is added inside the non visible <!--html tag <?php // or /*?> --> is used. The bug could be inside a Character identifier within the Php parser. Or an added preg_replace function after compile. I'm still looking for it.
about2mount
 
Posts: 4
Joined: 04. September 2011 19:13
Location: Texas
Operating System: windows 7 ultimate 64x

Re: Windows xampp bug found !!!!

Postby glitzi85 » 09. June 2015 09:53

First of all would this not be a bug in XAMPP but in PHP. Also this looks more like you have an PHP Error that you don't see because you hide it inside an HTML Comment (why would you do that anyway).
Remove the comment in front of the PHP tag and check your php code.
User avatar
glitzi85
 
Posts: 1920
Joined: 05. March 2004 23:26
Location: Dahoim

Re: Windows xampp bug found !!!!

Postby Nobbie » 09. June 2015 12:14

I checked this on my Xampp (Linux) installation, no problem here. I slightly changed that code and declared an empty class right_model for correct syntax:

Code: Select all
<?php
        class right_model {};
?>
<!--begin right menu--> 1ST INSTANCE
 <h3>Groups</h3>
          <ul class="ulclass">
          <li class="liclass"><a href="index.php?page=about"><img src ="assets/img/frnd.png"/> Friends</a></li>

<div class="col_12">
          <!-- <?php $right_model = new right_model;?> --> SECOND INSTANCE FAILS
          <h3>Archives</h3>    EVERYTHIBNG AFTER THIS COMMENT OUT DIES
          <ul class="ulclass">


When running this document (test.php) in my Apache, this is the generated HTML source i get:


Code: Select all
<!--begin right menu--> 1ST INSTANCE
 <h3>Groups</h3>
          <ul class="ulclass">
          <li class="liclass"><a href="index.php?page=about"><img src ="assets/img/frnd.png"/> Friends</a></li>

<div class="col_12">
          <!--  --> SECOND INSTANCE FAILS
          <h3>Archives</h3>    EVERYTHIBNG AFTER THIS COMMENT OUT DIES
          <ul class="ulclass">


Everything is ok.
Nobbie
 
Posts: 8772
Joined: 09. March 2008 13:04


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 59 guests