diff --git a/src/encode.c b/src/encode.c
index 9dd6cf862d57e08ecd9622055ac95797702856ef..ea32bf2a647673c1b33c5bd5ff434666a6f62b83 100644
--- a/src/encode.c
+++ b/src/encode.c
@@ -2,7 +2,7 @@
 || This file is part of Pike. For copyright information see COPYRIGHT.
 || Pike is distributed under GPL, LGPL and MPL. See the file COPYING
 || for more information.
-|| $Id: encode.c,v 1.287 2008/10/02 15:49:02 mast Exp $
+|| $Id: encode.c,v 1.288 2009/08/09 13:09:58 grubba Exp $
 */
 
 #include "global.h"
@@ -1556,6 +1556,9 @@ static void encode_value2(struct svalue *val, struct encode_data *data, int forc
 
 		  /* run-time type */
 		  code_number(id->run_time_type, data);
+
+		  /* opt flags */
+		  code_number(id->opt_flags, data);
 		  break;
 
 		case IDENTIFIER_PIKE_FUNCTION:
@@ -4344,6 +4347,9 @@ static void decode_value2(struct decode_data *data)
 		/* run_time_type */
 		decode_number(id.run_time_type, data);
 
+		/* opt_flags */
+		decode_number(id.opt_flags, data);
+
 		/* Expected identifier number. */
 		decode_number(no, data);
 
diff --git a/src/version.h b/src/version.h
index 7ad79aa727771d4ac94bbe37e99073f02bd09f69..7bb409987cdaacc136bfea1c453161e8b483eef0 100644
--- a/src/version.h
+++ b/src/version.h
@@ -2,12 +2,12 @@
 || This file is part of Pike. For copyright information see COPYRIGHT.
 || Pike is distributed under GPL, LGPL and MPL. See the file COPYING
 || for more information.
-|| $Id: version.h,v 1.844 2009/07/06 08:00:33 distmaker Exp $
+|| $Id: version.h,v 1.845 2009/08/09 13:09:58 grubba Exp $
 */
 
 #define PIKE_MAJOR_VERSION 7
 #define PIKE_MINOR_VERSION 8
-#define PIKE_BUILD_VERSION 333
+#define PIKE_BUILD_VERSION 335
 
 /* Prototypes begin here */
 void f_version(INT32 args);