[PHP-DEV] Bug #12252 Updated: URL rewriter outputs a spurious " /"

2001-07-19 Thread swm

ID: 12252
Updated by: swm
Reported By: [EMAIL PROTECTED]
Old Status: Open
Status: Closed
Bug Type: Session related
Operating System: linux suse 6.4
PHP Version: 4.0.6
New Comment:

Now closed.

Previous Comments:


[2001-07-19 10:37:52] [EMAIL PROTECTED]

I don't think it is. Here is the code:

static inline void handle_form(STD_PARA)
{
if (ctx->tag.len == 4 && strncasecmp(ctx->tag.c, "form", 4) == 0) {
smart_str_appends(&ctx->result, "result, &ctx->q_name);
smart_str_appends(&ctx->result, "\" value=\"");
smart_str_append(&ctx->result, &ctx->q_value);
smart_str_appends(&ctx->result, "\" />");
}
}

You'll notice that it is not a  tag we are adding.
Rather, it is 



[2001-07-19 10:34:02] [EMAIL PROTECTED]

actually that _is_ a bug. form is _not_ an empty element.



[2001-07-19 10:08:38] [EMAIL PROTECTED]

This is not a spurious slash. This slash is present to make PHP XHTML 1.0 compliant. 
See more at: http://www.w3.org/TR/xhtml1/

swm



[2001-07-19 09:29:26] [EMAIL PROTECTED]

the rewriter adds a " /" befor the closing bracket in the  rewriting.
fallowing a diff to patch it.
sincerely Daniel S.

*** ext/standard/url_scanner_ex.c   Thu Jun 21 08:29:04 2001
--- ext/standard/url_scanner_ex_modif.c   Thu Jul 19 14:14:34 2001
*** static inline void handle_form(STD_PARA)
*** 178,182 
smart_str_appends(&ctx->result, "\" value=\"");
smart_str_append(&ctx->result, &ctx->q_value);
!   smart_str_appends(&ctx->result, "\" />");
}
  }
--- 178,182 
smart_str_appends(&ctx->result, "\" value=\"");
smart_str_append(&ctx->result, &ctx->q_value);
!   smart_str_appends(&ctx->result, "\">");
}
  }





Edit this bug report at http://bugs.php.net/?id=12252&edit=1


-- 
PHP Development Mailing List 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] Bug #12252 Updated: URL rewriter outputs a spurious " /"

2001-07-19 Thread swm

ID: 12252
Updated by: swm
Reported By: [EMAIL PROTECTED]
Status: Open
Bug Type: Session related
Operating System: linux suse 6.4
PHP Version: 4.0.6
New Comment:

I don't think it is. Here is the code:

static inline void handle_form(STD_PARA)
{
if (ctx->tag.len == 4 && strncasecmp(ctx->tag.c, "form", 4) == 0) {
smart_str_appends(&ctx->result, "result, &ctx->q_name);
smart_str_appends(&ctx->result, "\" value=\"");
smart_str_append(&ctx->result, &ctx->q_value);
smart_str_appends(&ctx->result, "\" />");
}
}

You'll notice that it is not a  tag we are adding.
Rather, it is 

Previous Comments:


[2001-07-19 10:34:02] [EMAIL PROTECTED]

actually that _is_ a bug. form is _not_ an empty element.



[2001-07-19 10:08:38] [EMAIL PROTECTED]

This is not a spurious slash. This slash is present to make PHP XHTML 1.0 compliant. 
See more at: http://www.w3.org/TR/xhtml1/

swm



[2001-07-19 09:29:26] [EMAIL PROTECTED]

the rewriter adds a " /" befor the closing bracket in the  rewriting.
fallowing a diff to patch it.
sincerely Daniel S.

*** ext/standard/url_scanner_ex.c   Thu Jun 21 08:29:04 2001
--- ext/standard/url_scanner_ex_modif.c   Thu Jul 19 14:14:34 2001
*** static inline void handle_form(STD_PARA)
*** 178,182 
smart_str_appends(&ctx->result, "\" value=\"");
smart_str_append(&ctx->result, &ctx->q_value);
!   smart_str_appends(&ctx->result, "\" />");
}
  }
--- 178,182 
smart_str_appends(&ctx->result, "\" value=\"");
smart_str_append(&ctx->result, &ctx->q_value);
!   smart_str_appends(&ctx->result, "\">");
}
  }





Edit this bug report at http://bugs.php.net/?id=12252&edit=1


-- 
PHP Development Mailing List 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] Bug #12252 Updated: URL rewriter outputs a spurious " /"

2001-07-19 Thread cynic

ID: 12252
Updated by: cynic
Reported By: [EMAIL PROTECTED]
Old Status: Closed
Status: Open
Bug Type: Session related
Operating System: linux suse 6.4
PHP Version: 4.0.6
New Comment:

actually that _is_ a bug. form is _not_ an empty element.

Previous Comments:


[2001-07-19 10:08:38] [EMAIL PROTECTED]

This is not a spurious slash. This slash is present to make PHP XHTML 1.0 compliant. 
See more at: http://www.w3.org/TR/xhtml1/

swm



[2001-07-19 09:29:26] [EMAIL PROTECTED]

the rewriter adds a " /" befor the closing bracket in the  rewriting.
fallowing a diff to patch it.
sincerely Daniel S.

*** ext/standard/url_scanner_ex.c   Thu Jun 21 08:29:04 2001
--- ext/standard/url_scanner_ex_modif.c   Thu Jul 19 14:14:34 2001
*** static inline void handle_form(STD_PARA)
*** 178,182 
smart_str_appends(&ctx->result, "\" value=\"");
smart_str_append(&ctx->result, &ctx->q_value);
!   smart_str_appends(&ctx->result, "\" />");
}
  }
--- 178,182 
smart_str_appends(&ctx->result, "\" value=\"");
smart_str_append(&ctx->result, &ctx->q_value);
!   smart_str_appends(&ctx->result, "\">");
}
  }





Edit this bug report at http://bugs.php.net/?id=12252&edit=1


-- 
PHP Development Mailing List 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] Bug #12252 Updated: URL rewriter outputs a spurious " /"

2001-07-19 Thread swm

ID: 12252
Updated by: swm
Reported By: [EMAIL PROTECTED]
Old Status: Open
Status: Closed
Bug Type: Session related
Operating System: linux suse 6.4
PHP Version: 4.0.6
New Comment:

This is not a spurious slash. This slash is present to make PHP XHTML 1.0 compliant. 
See more at: http://www.w3.org/TR/xhtml1/

swm

Previous Comments:


[2001-07-19 09:29:26] [EMAIL PROTECTED]

the rewriter adds a " /" befor the closing bracket in the  rewriting.
fallowing a diff to patch it.
sincerely Daniel S.

*** ext/standard/url_scanner_ex.c   Thu Jun 21 08:29:04 2001
--- ext/standard/url_scanner_ex_modif.c   Thu Jul 19 14:14:34 2001
*** static inline void handle_form(STD_PARA)
*** 178,182 
smart_str_appends(&ctx->result, "\" value=\"");
smart_str_append(&ctx->result, &ctx->q_value);
!   smart_str_appends(&ctx->result, "\" />");
}
  }
--- 178,182 
smart_str_appends(&ctx->result, "\" value=\"");
smart_str_append(&ctx->result, &ctx->q_value);
!   smart_str_appends(&ctx->result, "\">");
}
  }





Edit this bug report at http://bugs.php.net/?id=12252&edit=1


-- 
PHP Development Mailing List 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]