Dec 04, 2008, 04:16 PM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
Search via SMF or Google: modx forums all of modxcms.com web
  MODxCMS.com   Forums   Help Login Register  
Pages: [1]   Go Down
  Print  
Author Topic: Teeny bug in Ditto 2.0.2 with short_open_tag = Off in php.ini  (Read 1103 times)
0 Members and 1 Guest are viewing this topic.
dflock
Jr. Member
*
Posts: 45



WWW
« on: Apr 21, 2007, 04:52 PM »

I've noticed a strange little issue with ditto (2.0.2 - affects earlier versions to, I think) when 'short_open_tag = Off' in your php.ini file. It outputs this:

Code:
<?
// Use the following syntax $param = 'value';
?>

at the beginning of every section of Ditto output. This doesn't actually seem to affect anything, as the code is ignored by browsers, but it's a bit... untidy, I guess and was bugging me.

So, I tracked this down to the \snippets\ditto\configs\default.config.php file (which I hadn't altered since installing Ditto 2.02). The file looked like this:

Code:
<?
// Use the following syntax $param = 'value';
?>

If I changed the file to this (i.e. using the long form php tags <?php instead of the short ones <?:

Code:
<?php

// Use the following syntax $param = 'value';

?>


the mysterious output went away. Just thought I'd let you know.

Cheers,
Dunc
Logged
Mark
Moderator
*
Posts: 3,247


Ditto Developer


WWW
« Reply #1 on: Apr 22, 2007, 01:40 AM »

Please file a bug report in TRAC so that a following commit can be correlated to it.
Logged

dflock
Jr. Member
*
Posts: 45



WWW
« Reply #2 on: Apr 22, 2007, 09:28 AM »

Done:

http://mirror3.cvsdude.com/trac/ditto/codebase/ticket/51

I've attached a file to the ticket for the fix.
Logged
Mark
Moderator
*
Posts: 3,247


Ditto Developer


WWW
« Reply #3 on: Apr 23, 2007, 10:25 AM »

Fixed in Changeset 1423
Logged

Pages: [1]   Go Up
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP

Copyright © 2005-2008 MODxCMS, All rights reserved. Contact Us
Styles by ziworks.com

Powered by SMF 1.1.4 | SMF © 2005, Simple Machines LLC

Valid XHTML 1.0! Valid CSS!