Bug #13217 Updated: Removal of unneeded code from execution flow.

From: Date: Sun, 09 Sep 2001 02:39:56 +0000
Subject: Bug #13217 Updated: Removal of unneeded code from execution flow.
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-65519@lists.php.net to get a copy of this message
ID: 13217 User updated by: Paul.Hampson@Pobox.Com Reported By: Paul.Hampson@Pobox.Com Status: Open Bug Type: Feature/Change Request Operating System: Debian GNU/Linux PHP Version: 4.0.6 New Comment: Grr web interface: http://www.bubblesworth.com/php4.cvs2.diff Previous Comments: ------------------------------------------------------------------------ [2001-09-08 22:37:15] Paul.Hampson@Pobox.Com If (z_value && ZZ_STRLEN_PP(z_value) == 0) then encoded_value isn't used. So no need to generate it, surely? This patch'll be mangled by the wrapping in the window, so it's available at <a href="http://www.bubblesworth.com/php4.cvs2.diff">http://www.bubblesworth.com/php4.cvs2.diff</a> --- ext/standard/head.c.cvs Sun Sep 9 12:13:27 2001 +++ ext/standard/head.c.new Sun Sep 9 12:39:47 2001 @@ -118,7 +118,7 @@ if (z_name) { len += Z_STRLEN_PP(z_name); } - if (z_value) { + if (z_value && Z_STRLEN_PP(z_value) != 0) { int encoded_value_len; encoded_value = php_url_encode(Z_STRVAL_PP(z_value), Z_STRLEN_PP(z_value), &encoded_value_len); ------------------------------------------------------------------------ Edit this bug report at http://bugs.php.net/?id=13217&edit=1

« previous php.dev (#65519) next »