Page 1 of 1

Windows xampp bug found !!!!

PostPosted: 09. June 2015 06:44
by about2mount
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

Re: Windows xampp bug found !!!!

PostPosted: 09. June 2015 07:01
by about2mount
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">

Re: Windows xampp bug found !!!!

PostPosted: 09. June 2015 07:16
by about2mount
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.

Re: Windows xampp bug found !!!!

PostPosted: 09. June 2015 09:53
by glitzi85
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.

Re: Windows xampp bug found !!!!

PostPosted: 09. June 2015 12:14
by Nobbie
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.