php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #54990 doc-base/configure.php fails when project resides in path with a space
Submitted: 2011-06-04 03:15 UTC Modified: 2013-02-18 00:34 UTC
From: frozenfire at thefrozenfire dot com Assigned:
Status: No Feedback Package: Doc Build problem
PHP Version: Irrelevant OS: Linux (probably irrelevant)
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: frozenfire at thefrozenfire dot com
New email:
PHP Version: OS:

 

 [2011-06-04 03:15 UTC] frozenfire at thefrozenfire dot com
Description:
------------
When the check-out of the doc-en module falls within a path that contains a 
space, configure.php fails when invoked relatively. When invoked from the doc-
base directory, the script operates successfully.

Test script:
---------------
justin@justin-laptop:~/Desktop/SVN Repositories/phpdoc$ php doc-base/configure.php

Expected result:
----------------
configure.php: $Id: configure.php 310808 2011-05-06 16:11:39Z bjori $
PHP version: 5.3.5

Checking for source directory... /home/justin/Desktop/SVN 
Repositories/phpdoc/doc-base
Checking for output filename... /home/justin/Desktop/SVN 
Repositories/phpdoc/doc-base/.manual.xml
Checking whether to include CHM... no
Checking for PHP executable... /usr/local/bin/php
Checking for language to build... en
Checking whether the language is supported... yes
Checking for partial build... no
Checking whether to enable detailed XML error messages... no
Checking libxml version... 2.7.8
Checking whether to enable detailed error reporting (may segfault)... yes
Checking whether to optimize out the DTD (performance gain, but segfaults)... 
yes
Generating /home/justin/Desktop/SVN Repositories/phpdoc/doc-base/manual.xml... 
done
Generating /home/justin/Desktop/SVN Repositories/phpdoc/doc-base/install-
unix.xml... done
Generating /home/justin/Desktop/SVN Repositories/phpdoc/doc-base/install-
win.xml... done
Generating /home/justin/Desktop/SVN Repositories/phpdoc/doc-
base/developer.template.xml... done
Generating /home/justin/Desktop/SVN Repositories/phpdoc/doc-
base/entities/version.ent... done
Generating /home/justin/Desktop/SVN Repositories/phpdoc/doc-base/scripts/file-
entities.php... done
Iterating over extension specific version files... OK
Saving it... OK
Creating file /home/justin/Desktop/SVN Repositories/phpdoc/doc-
base/entities/file-entities.ent... done
Checking for if we should generate a simplified file... no
Checking whether to save an invalid .manual.xml... no
Loading and parsing manual.xml... done.
Validating manual.xml... done.

All good. Saving .manual.xml... done.
All you have to do now is run 'phd -d /home/justin/Desktop/SVN 
Repositories/phpdoc/doc-base/.manual.xml'
If the script hangs here, you can abort with ^C.
 (Run `nice php configure.php` next time!)


PHP will segfault now :) - Don't worry though, the .manual.xml has been saved :D
Segmentation fault

Actual result:
--------------
configure.php: $Id: configure.php 310808 2011-05-06 16:11:39Z bjori $
PHP version: 5.3.5

Checking for source directory... /home/justin/Desktop/SVN 
Repositories/phpdoc/doc-base
Checking for output filename... /home/justin/Desktop/SVN 
Repositories/phpdoc/doc-base/.manual.xml
Checking whether to include CHM... no
Checking for PHP executable... /usr/local/bin/php
Checking for language to build... en
Checking whether the language is supported... yes
Checking for partial build... no
Checking whether to enable detailed XML error messages... no
Checking libxml version... 2.7.8
Checking whether to enable detailed error reporting (may segfault)... yes
Checking whether to optimize out the DTD (performance gain, but segfaults)... 
yes
Generating /home/justin/Desktop/SVN Repositories/phpdoc/doc-base/manual.xml... 
done
Generating /home/justin/Desktop/SVN Repositories/phpdoc/doc-base/install-
unix.xml... done
Generating /home/justin/Desktop/SVN Repositories/phpdoc/doc-base/install-
win.xml... done
Generating /home/justin/Desktop/SVN Repositories/phpdoc/doc-
base/developer.template.xml... done
Generating /home/justin/Desktop/SVN Repositories/phpdoc/doc-
base/entities/version.ent... done
Generating /home/justin/Desktop/SVN Repositories/phpdoc/doc-base/scripts/file-
entities.php... done
Iterating over extension specific version files... OK
Saving it... OK
Creating file /home/justin/Desktop/SVN Repositories/phpdoc/doc-
base/entities/file-entities.ent... done
Checking for if we should generate a simplified file... no
Checking whether to save an invalid .manual.xml... no
Loading and parsing manual.xml... failed.

ERROR (/home/justin/Desktop/SVN Repositories/phpdoc/doc-base/manual.xml:11:13)
%xhtml-lat1;
-------------^
 failed to load external entity "./entities/ISO/xhtml1-lat1.ent"

ERROR (/home/justin/Desktop/SVN Repositories/phpdoc/doc-base/manual.xml:12:15)
%xhtml-symbol;
---------------^
 internal error


Previous errors too severe. Stopping here.


Eyh man. No worries. Happ shittens. Try again after fixing the errors above.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2011-07-05 17:07 UTC] bjori@php.net
-Status: Open +Status: Feedback
 [2011-07-05 17:07 UTC] bjori@php.net
Hmh

bjori@mini:~/Work/src test/php/phpdoc/doc-base/trunk$ php configure.php 
configure.php: $Id: configure.php 310808 2011-05-06 16:11:39Z bjori $
PHP version: 5.3.5-1ubuntu7.2

Checking for source directory... /home/bjori/Work/src test/php/phpdoc/doc-
base/trunk
Checking for output filename... /home/bjori/Work/src test/php/phpdoc/doc-
base/trunk/.manual.xml
Checking whether to include CHM... no
Checking for PHP executable... /usr/bin/php5
Checking for language to build... en
Checking whether the language is supported... yes
Checking for partial build... no
Checking whether to enable detailed XML error messages... no
Checking libxml version... 2.7.8
Checking whether to enable detailed error reporting (may segfault)... yes
Checking whether to optimize out the DTD (performance gain, but segfaults)... 
yes
Generating /home/bjori/Work/src test/php/phpdoc/doc-base/trunk/manual.xml... 
done
Generating /home/bjori/Work/src test/php/phpdoc/doc-base/trunk/install-
unix.xml... done
Generating /home/bjori/Work/src test/php/phpdoc/doc-base/trunk/install-
win.xml... done
Generating /home/bjori/Work/src test/php/phpdoc/doc-
base/trunk/developer.template.xml... done
Generating /home/bjori/Work/src test/php/phpdoc/doc-
base/trunk/entities/version.ent... done
Generating /home/bjori/Work/src test/php/phpdoc/doc-base/trunk/scripts/file-
entities.php... done
Iterating over extension specific version files... OK
Saving it... OK
Creating file /home/bjori/Work/src test/php/phpdoc/doc-base/trunk/entities/file-
entities.ent... done
Checking for if we should generate a simplified file... no
Checking whether to save an invalid .manual.xml... no
Loading and parsing manual.xml... done.
Validating manual.xml... done.

All good. Saving .manual.xml... done.
All you have to do now is run 'phd -d /home/bjori/Work/src test/php/phpdoc/doc-
base/trunk/.manual.xml'
If the script hangs here, you can abort with ^C.
 (Run `nice php configure.php` next time!)


PHP will segfault now :) - Don't worry though, the .manual.xml has been saved :D
Segmentation fault


works fine for me.

If I however run it from below doc-base;
php doc-base/trunk/configure.php I get the same result as you get, but only when 
there is a space.


Does it work for you if you go into the doc-base folder?
 [2013-02-18 00:34 UTC] php-bugs at lists dot php dot net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Open". Thank you.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Dec 26 23:01:28 2024 UTC