All,

My ISP recently upgraded to PHP5.3. It gave me several problems because this PHP version is not yet supported by Drupal (will be in Drupal 7). However several work-arounds are available and well documented in this forum.

One issue however I did not find yet. On the page that displays the modules (site construction) some errors like below occur:

warning: syntax error, unexpected BOOL_TRUE in modules/<any module>/<any module>.info on line 3 in /.../includes/module.inc on line 195.

Probably it has something to do with the gtrans module I'm using, but I'm not sure. Anyway I found a working solution that I like to share with anyone having the same problem. I will answer my own question for this (split personality ;-) ).

Comments

I found it has something to do with text being interpreted. For instance my comment module gives the following description in comment.info:

; $Id: comment.info,v 1.3 2006/11/21 20:55:34 dries Exp $
name = Comment
description = Allows users to comment on and discuss published content.
package = Core - optional
version = VERSION
; Information added by drupal.org packaging script on 2009-12-16
version = "5.21"
project = "drupal"
datestamp = "1260996627"

In the description the word "on" is used. This seems to result in "description" being interpreted as a boolean. Putting double quotes around the text resolves the issue. So I changed the description line into:

description = "Allows users to comment on and discuss published content."

Probably it is not a good way to resolve the issue permanently the way it should, but it works for me to get around it. Maybe someone can give a more permanent solution?

Index: modules/node/node.info
===================================================================
--- modules/node/node.info (revision 18588)
+++ modules/node/node.info (working copy)
@@ -1,6 +1,6 @@
; $Id: node.info,v 1.3 2006/11/21 20:55:34 dries Exp $
name = Node
-description = Allows content to be submitted to the site and displayed on pages.
+description = "Allows content to be submitted to the site and displayed on pages."
package = Core - required
version = VERSION
Index: modules/drupal/drupal.info
===================================================================
--- modules/drupal/drupal.info (revision 18588)
+++ modules/drupal/drupal.info (working copy)
@@ -1,6 +1,6 @@
; $Id: drupal.info,v 1.3 2006/11/21 20:55:34 dries Exp $
name = Drupal
-description = Lets you register your site with a central server and improve ranking of Drupal projects by posting information on your installed modules and themes; also enables users to log in using a Drupal ID.
+description = "Lets you register your site with a central server and improve ranking of Drupal projects by posting information on your installed modules and themes; also enables users to log in using a Drupal ID."
package = Core - optional
version = VERSION
Index: modules/comment/comment.info
===================================================================
--- modules/comment/comment.info (revision 18588)
+++ modules/comment/comment.info (working copy)
@@ -1,6 +1,6 @@
; $Id: comment.info,v 1.3 2006/11/21 20:55:34 dries Exp $
name = Comment
-description = Allows users to comment on and discuss published content.
+description = "Allows users to comment on and discuss published content."
package = Core - optional
version = VERSION
Index: modules/poll/poll.info
===================================================================
--- modules/poll/poll.info (revision 18588)
+++ modules/poll/poll.info (working copy)
@@ -1,6 +1,6 @@
; $Id: poll.info,v 1.3 2006/11/21 20:55:35 dries Exp $
name = Poll
-description = Allows your site to capture votes on different topics in the form of multiple choice questions.
+description = "Allows your site to capture votes on different topics in the form of multiple choice questions."
package = Core - optional
version = VERSION

thanks for this solution, it worked fine for me.
I had this problem (also Drupal 5) with:

  1. modules/poll/poll.info on line 3
  2. modules/node/node.info
  3. modules/drupal/drupal.info
  4. modules/comment/comment.info
  5. sites/all/modules/scheduler/scheduler.info
  6. sites/all/modules/actions/actions.info
  7. sites/all/modules/image/contrib/image_import/image_import.info
  8. sites/all/modules/image/contrib/image_gallery/image_gallery.info
  9. sites/all/modules/extlink/extlink.info
  10. sites/all/modules/asset/asset_import/asset_import.info

And a similar issue in line 4 with Module Add On

  1. sites/all/modules/feedapi/parser_common_syndication/parser_common_syndication.info
  2. sites/all/modules/feedapi/feedapi_node_views/feedapi_node_views.info
  3. sites/all/modules/feedapi/feedapi_aggregator/feedapi_aggregator.info

Nice, this worked like a charm! After solving problems with ereg, split, parameter 1 and other annoying stuff, I was happy to so easily find a solution for this problem. Thanks for posting :-)

Hi,

I was also having the same problem. But my solution is a little bit different. I hope it may be helpful for others.

I just replaced the following (line 195 in module.inc):

<?php
$info
= parse_ini_file($filename);
?>

with this:

<?php
$info
= parse_ini_file($filename,false,INI_SCANNER_RAW);
?>

and it worked like a charm.. all errors are removed.

====
s13

It really works for me. This method is much convenient than replacing each file with another code. I recommend others to try this.

-ErNEZT-

There are a lot of errors in my site under D5 after upgrading to php5.3:

warning: syntax error, unexpected BOOL_TRUE in sites/all/modules/actions/actions.info on line 3 in .../includes/module.inc on line 195.
warning: syntax error, unexpected BOOL_TRUE in sites/all/modules/cck_field_perms/cck_field_perms.info on line 3 in .../includes/module.inc on line 195.
warning: syntax error, unexpected BOOL_TRUE in modules/comment/comment.info on line 3 in .../includes/module.inc on line 195.
warning: syntax error, unexpected BOOL_TRUE in modules/drupal/drupal.info on line 3 in .../includes/module.inc on line 195.
warning: syntax error, unexpected BOOL_TRUE in sites/all/modules/glossary/glossary.info on line 3 in .../includes/module.inc on line 195.
warning: syntax error, unexpected BOOL_TRUE in sites/all/modules/image/contrib/image_gallery/image_gallery.info on line 3 in .../includes/module.inc on line 195.
warning: syntax error, unexpected BOOL_TRUE in sites/all/modules/image/contrib/image_import/image_import.info on line 3 in .../includes/module.inc on line 195.
warning: syntax error, unexpected BOOL_TRUE in modules/node/node.info on line 3 in .../includes/module.inc on line 195.
warning: syntax error, unexpected BOOL_TRUE in modules/poll/poll.info on line 3 in .../includes/module.inc on line 195.
warning: syntax error, unexpected BOOL_TRUE in sites/all/modules/taxonomy_access/taxonomy_access.info on line 3 in .../includes/module.inc on line 195.
warning: syntax error, unexpected BOOL_TRUE in sites/packing/modules/views_bulk_operations/views_bulk_operations.info on line 3 in .../includes/module.inc on line 195.
warning: syntax error, unexpected BOOL_TRUE in sites/packing/modules/workflow/workflow_access.info on line 3 in .../includes/module.inc on line 195.
warning: syntax error, unexpected BOOL_TRUE in sites/packing/modules/workflow/contrib/workflow_workflow_ng/workflow_workflow_ng.info on line 3 in .../includes/module.inc on line 195.
warning: syntax error, unexpected BOOL_TRUE in modules/comment/comment.info on line 3 in .../includes/module.inc on line 195.
warning: syntax error, unexpected BOOL_TRUE in modules/node/node.info on line 3 in .../includes/module.inc on line 195.
warning: syntax error, unexpected BOOL_TRUE in sites/all/modules/glossary/glossary.info on line 3 in .../includes/module.inc on line 195.
warning: syntax error, unexpected BOOL_TRUE in sites/all/modules/actions/actions.info on line 3 in .../includes/module.inc on line 195.
warning: syntax error, unexpected BOOL_TRUE in sites/packing/modules/views_bulk_operations/views_bulk_operations.info on line 3 in .../includes/module.inc on line 195.
warning: syntax error, unexpected BOOL_TRUE in sites/packing/modules/workflow/workflow_access.info on line 3 in .../includes/module.inc on line 195.
warning: syntax error, unexpected BOOL_TRUE in sites/packing/modules/workflow/contrib/workflow_workflow_ng/workflow_workflow_ng.info on line 3 in .../includes/module.inc on line 195.

I replaced the following the line 195 in module.inc

$info = parse_ini_file($filename);

with new line

$info = parse_ini_file($filename,false,INI_SCANNER_RAW);

It seems to fix all of them.