[PHP-DOC] #22691 [Fbk->Bgs]: Posting hints to online manual - how?

2003-03-19 Thread sniper
 ID:   22691
 Updated by:   [EMAIL PROTECTED]
 Reported By:  lew at mailduct dot com
-Status:   Feedback
+Status:   Bogus
 Bug Type: Documentation problem
 Operating System: irrelevant
 PHP Version:  4.3.2RC1
 New Comment:

It's already mentioned here:

http://www.php.net/manual/en/language.constants.php



Previous Comments:


[2003-03-14 02:01:07] [EMAIL PROTECTED]

There is a [+] on the top right of every user comments 
section.  Click on this and you'll be good to go.

The section on constants already mentions this, maybe 
it should be mentioned in the variable.scope section?  
Or the superglobals section?




[2003-03-14 01:17:11] lew at mailduct dot com

How do I gain access to post "hints" into the PHP online manual, like
in the old days?  I want to mention that if you "define" a constant, it
is available for use within the global context... no need to declare it
as a global within a function.




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


-- 
PHP Documentation Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP-DOC] #20464 [Com]: german docu: "floor()" has wrong return value

2003-03-19 Thread mail at fallingarms dot de
 ID:   20464
 Comment by:   mail at fallingarms dot de
 Reported By:  nagNOSPAMger at gmx dot de
 Status:   Closed
 Bug Type: Documentation problem
 Operating System: any
 PHP Version:  4.2.3
 Assigned To:  nicos
 New Comment:

the same bug at the following function definitions in the german
documentation: (here int instead of bool)

is_array()
is_bool()
is_double() and synonyms
is_int() and sysnonyms
is_string()
is_numeric()
is_object()
is_resource()
isset()


Previous Comments:


[2002-11-17 10:45:06] [EMAIL PROTECTED]

It will be fixed when the manual will be updated.



[2002-11-17 10:17:27] [EMAIL PROTECTED]

I'm fixing that.



[2002-11-17 10:14:08] nagNOSPAMger at gmx dot de

.



[2002-11-17 10:12:36] nagNOSPAMger at gmx dot de

the function floor() is correct defined as:
float floor ( float number)

But in german documentation its described as 
int floor ( float number)

i also checked the other languages. its also wrong in 
korean and spanish docu version.





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


-- 
PHP Documentation Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP-DOC] cvs: phpdoc / configure.in

2003-03-19 Thread Hartmut Holzgraefe
hholzgraWed Mar 19 12:19:35 2003 EDT

  Modified files:  
/phpdoc configure.in 
  Log:
  "configure --help" output cleanup and support for additional options
  "--with-pear-source" and "--with-extension" so that documentation
  parts from PECL and from standalone extensions may be integrated
  (work in progress)
  
  
Index: phpdoc/configure.in
diff -u phpdoc/configure.in:1.181 phpdoc/configure.in:1.182
--- phpdoc/configure.in:1.181   Mon Feb 10 08:13:51 2003
+++ phpdoc/configure.in Wed Mar 19 12:19:34 2003
@@ -1,4 +1,4 @@
-dnl $Id: configure.in,v 1.181 2003/02/10 13:13:51 betz Exp $
+dnl $Id: configure.in,v 1.182 2003/03/19 17:19:34 hholzgra Exp $
 
 dnl autoconf initialisation
 AC_INIT()
@@ -23,7 +23,7 @@
 
 dnl use given argument, if any, else search in path 
 AC_ARG_WITH(php,
-[  --with-php=PATH Look for PHP executable needed for helper scripts],
+[  --with-php=PATH look for PHP executable needed for helper scripts],
 [
   if test $withval != "yes"; then
 AC_MSG_CHECKING([for php])
@@ -85,7 +85,7 @@
 dnl use given argument, if any, else search in path 
 
 AC_ARG_WITH(jade,
-[  --with-jade=PATHLook for jade or openjade executable],[
+[  --with-jade=PATHlook for jade or openjade executable],[
   if test $withval != "yes"; then
 AC_MSG_CHECKING([for jade])
 if test -x $withval; then
@@ -135,7 +135,7 @@
 dnl {{{   check for nsgmls
 
 AC_ARG_WITH(nsgmls,
-[  --with-nsgmls=PATH  Look for nsgmls executable],[
+[  --with-nsgmls=PATH  look for nsgmls executable],[
   if test $withval != "yes"; then
 AC_MSG_CHECKING([for nsgmls])
 if test -x $withval; then
@@ -176,7 +176,7 @@
 dnl use given argument, if any, else search in path
 
 AC_ARG_WITH(xsltproc,
-[  --with-xsltproc=PATHLook for xsltproc],
+[  --with-xsltproc=PATHlook for xsltproc],
 [
   if test $withval != "yes"; then
 AC_MSG_CHECKING([for xsltproc])
@@ -219,7 +219,7 @@
 dnl use given argument, if any, else search in path
 
 AC_ARG_WITH(xmllint,
-[  --with-xmllint=PATHcheck for xmllint],
+[  --with-xmllint=PATH check for xmllint],
 [
   if test $withval != "yes"; then
 AC_MSG_CHECKING([for xmllint])
@@ -267,7 +267,7 @@
 AC_MSG_CHECKING(for docbook.dsl)
 
 AC_ARG_WITH(dsssl,
-[  --with-dsssl=[DIR]  Look for DSSSL stylesheets in the specified directory],
+[  --with-dsssl=[DIR]look for DSSSL stylesheets in the specified directory],
 [
   if test -f "$withval/html/docbook.dsl" ; then
 DOCBOOK_HTML=$withval/html/docbook.dsl
@@ -293,7 +293,7 @@
 AC_MSG_CHECKING(for docbook.xsl)
 
 AC_ARG_WITH(xsl,
-[  --with-xsl=[DIR]Look for XSL stylesheets in the specified DIR],
+[  --with-xsl=[DIR]  look for XSL stylesheets in the specified DIR],
 [
   if test -f "$withval/html/docbook.xsl"; then
 DOCBOOKXSL_BIGHTML=$withval/html/docbook.xsl
@@ -382,7 +382,7 @@
 
 AC_MSG_CHECKING(for PHP source path)
 AC_ARG_WITH(source,
-[  --with-source=[DIR] Look at the specified source directory],
+[  --with-source=[DIR]   look at the specified source directory],
 [
   if test -d "$withval" ; then
 PHP_SOURCE=$withval
@@ -400,12 +400,55 @@
 
 dnl }}}
 
+dnl {{{ check for PEAR sources
+
+AC_MSG_CHECKING(for PEAR source path)
+AC_ARG_WITH(pear,
+[  --with-pear-source=[DIR]  look at the specified pear directory],
+[
+  if test -d "$withval" ; then
+PEAR_SOURCE=$withval
+  else
+PEAR_SOURCE=$srcdir/../pear
+  fi
+],[
+  PEAR_SOURCE=$srcdir/../pear
+])
+if test ! -d $PEAR_SOURCE/PECL; then
+   PEAR_SOURCE=no
+fi
+AC_MSG_RESULT($PEAR_SOURCE)
+AC_SUBST(PEAR_SOURCE)
+
+dnl }}}
+
+dnl {{{ check for additional extension sources
+
+AC_MSG_CHECKING(for additional PHP extensions)
+AC_ARG_WITH(extension,
+[  --with-extension=[DIR]look at the specified extension directory],
+[
+   AC_MSG_RESULT($withval)
+list=`echo "$withval" | sed -e"s/,/ /g"`
+EXT_SOURCE="";
+for dir in $list; do
+   if test -d "$dir/manual"; then
+AC_MSG_RESULT([  extension '$dir' ok])
+   EXT_SOURCE="$EXT_SOURCE:$dir"
+   else
+ AC_MSG_WARN([  extension '$dir' ignored])
+   fi
+done
+])
+dnl }}}
+AC_SUBST(EXT_SOURCE)
+
 dnl {{{ check for ZendEngine API documentation to include
 
 AC_MSG_CHECKING(for ZendAPI)
 
 AC_ARG_WITH(zendapi,
-[  --with-zendapi=[DIR]Look for ZendAPI documentation in the specified directory],
+[  --with-zendapi=[DIR]  look for ZendAPI documentation in the specified 
directory],
 [
   if test -f "$withval/Extending_Zend.xml" ; then
 ZENDAPI=$withval
@@ -447,7 +490,7 @@
 dnl {{{
 AC_MSG_CHECKING(for CSS to use for html docs)
 AC_ARG_WITH(htmlcss,
-[  --with-htmlcss=URL  Specify a CSS file to include in html docs],
+[  --with-htmlcss=URL  specify a CSS file to include in html docs],
 [
AC_MSG_RESULT([$withval])
HTMLCSS="(define %stylesheet% \"$withval\")"
@@ -465,7 +508,7 @@
 AC_MSG_CHECKING(for chmonly inclusion)
 
 AC_ARG_WITH(chm,
-[  --with-chm

[PHP-DOC] cvs: phpdoc /en/reference/fdf/functions fdf-enum-values.xml fdf-get-flags.xml fdf-get-opt.xml fdf-remove-item.xml

2003-03-19 Thread Hartmut Holzgraefe
hholzgraWed Mar 19 12:06:49 2003 EDT

  Added files: 
/phpdoc/en/reference/fdf/functions  fdf-enum-values.xml 
fdf-get-flags.xml 
fdf-get-opt.xml 
fdf-remove-item.xml 
  Log:
  some of the newer fdf functions were still missing
  
  

Index: phpdoc/en/reference/fdf/functions/fdf-enum-values.xml
+++ phpdoc/en/reference/fdf/functions/fdf-enum-values.xml


  
   
fdf_enum_values
Call a user defined function for each document value 
   
   
Description
 
  boolfdf_enum_values
  resourcefdfdoc
  callbackfunction
  mixeduserdata
 

&warn.undocumented.func;

   
  



Index: phpdoc/en/reference/fdf/functions/fdf-get-flags.xml
+++ phpdoc/en/reference/fdf/functions/fdf-get-flags.xml


  
   
fdf_get_flags
Gets the flags of a field
   
   
Description
 
  fdf_get_flags
  
 

&warn.undocumented.func;

   
  



Index: phpdoc/en/reference/fdf/functions/fdf-get-opt.xml
+++ phpdoc/en/reference/fdf/functions/fdf-get-opt.xml


  
   
fdf_get_opt
Gets a value from the opt array of a field
   
   
Description
 
  mixedfdf_get_opt
  resourcefdfdof
  stringfieldname
  intelement
 

&warn.undocumented.func;

   
  



Index: phpdoc/en/reference/fdf/functions/fdf-remove-item.xml
+++ phpdoc/en/reference/fdf/functions/fdf-remove-item.xml


  
   
fdf_remove_item
Sets target frame for form
   
   
Description
 
  boolfdf_remove_item
  resourcefdfdoc
  stringfieldname
  intitem
 

&warn.undocumented.func;

   
  





-- 
PHP Documentation Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP-DOC] cvs: phpdoc /en/reference/exec/functions escapeshellarg.xml

2003-03-19 Thread Hartmut Holzgraefe
hholzgraWed Mar 19 12:04:18 2003 EDT

  Modified files:  
/phpdoc/en/reference/exec/functions escapeshellarg.xml 
  Log:
  escapeshellarg/escapeshellcmd see-also now bidirectional
  
  
Index: phpdoc/en/reference/exec/functions/escapeshellarg.xml
diff -u phpdoc/en/reference/exec/functions/escapeshellarg.xml:1.2 
phpdoc/en/reference/exec/functions/escapeshellarg.xml:1.3
--- phpdoc/en/reference/exec/functions/escapeshellarg.xml:1.2   Wed Apr 17 02:37:47 
2002
+++ phpdoc/en/reference/exec/functions/escapeshellarg.xml   Wed Mar 19 12:04:18 
2003
@@ -1,5 +1,5 @@
 
-
+
 
   

@@ -31,7 +31,8 @@
  
 
 
- See also exec, popen,
+ See also escshellcmd,
+exec, popen,
  system, and the backtick operator.
 



-- 
PHP Documentation Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP-DOC] $_FILE superglobal

2003-03-19 Thread Gabor Hojtsy



The array index is called how you name your input 
field. If you name your input field "file", then the index will be 
"file".
 
Goba

  - Original Message - 
  From: 
  Tobias 
  Mikkelsen 
  To: [EMAIL PROTECTED] 
  Sent: Wednesday, March 19, 2003 12:15 
  PM
  Subject: [PHP-DOC] $_FILE 
  superglobal
  
  Hi there...
  I'm using php 4.3.0 and was looking for documentation on the 
  $_FILE superglobal.  'Chapter 18. Handling file uploads' in the 
  documentation doesn't state that in php 4.3.0 $_FILE['userfile'] 
  apparently has changed to $_FILE['file']
  -I don't know if i looked in the wrong part of the 
  documentation?
   
  /Tobias
   
  Tobias MikkelsenØrnevej 73 2th2400 København 
  NV
  Denmark3888 7262www.robotdesign.dkwww.mentalwaste.dk


[PHP-DOC] $_FILE superglobal

2003-03-19 Thread Tobias Mikkelsen



Hi there...
I'm using php 4.3.0 and was looking for documentation on the 
$_FILE superglobal.  'Chapter 18. Handling file uploads' in the 
documentation doesn't state that in php 4.3.0 $_FILE['userfile'] apparently 
has changed to $_FILE['file']
-I don't know if i looked in the wrong part of the 
documentation?
 
/Tobias
 
Tobias MikkelsenØrnevej 73 2th2400 København 
NV
Denmark3888 7262www.robotdesign.dkwww.mentalwaste.dk


[PHP-DOC] cvs: phpdoc /en/reference/dir/functions readdir.xml

2003-03-19 Thread Friedhelm Betz
betzWed Mar 19 07:14:21 2003 EDT

  Modified files:  
/phpdoc/en/reference/dir/functions  readdir.xml 
  Log:
  see also glob added
  
  
Index: phpdoc/en/reference/dir/functions/readdir.xml
diff -u phpdoc/en/reference/dir/functions/readdir.xml:1.3 
phpdoc/en/reference/dir/functions/readdir.xml:1.4
--- phpdoc/en/reference/dir/functions/readdir.xml:1.3   Wed Sep  4 04:19:47 2002
+++ phpdoc/en/reference/dir/functions/readdir.xml   Wed Mar 19 07:14:20 2003
@@ -1,5 +1,5 @@
 
-
+
 
   

@@ -81,7 +81,7 @@
   
  
 
-See also is_dir.
+See also is_dir, and glob.

   
 



-- 
PHP Documentation Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP-DOC] cvs: phpdoc /scripts file-entities.php.in

2003-03-19 Thread Moshe Doron
momoWed Mar 19 05:48:45 2003 EDT

  Modified files:  
/phpdoc/scripts file-entities.php.in 
  Log:
  more cygwin bin fix, add little load but clear.
  
Index: phpdoc/scripts/file-entities.php.in
diff -u phpdoc/scripts/file-entities.php.in:1.10 
phpdoc/scripts/file-entities.php.in:1.11
--- phpdoc/scripts/file-entities.php.in:1.10Wed Mar 19 04:36:48 2003
+++ phpdoc/scripts/file-entities.php.in Wed Mar 19 05:48:45 2003
@@ -17,7 +17,7 @@
 # | Gabor Hojtsy <[EMAIL PROTECTED]>  |
 # +--+
 # 
-# $Id: file-entities.php.in,v 1.10 2003/03/19 09:36:48 momo Exp $
+# $Id: file-entities.php.in,v 1.11 2003/03/19 10:48:45 momo Exp $
 */
 
 /**
@@ -50,20 +50,15 @@
 // XSL sheets are used or not (either "yes" or "no")
 $xsl_sheet_used = ("@DOCBOOKXSL_USED@" == "yes" ? TRUE : FALSE);
 
-
 // when php complied on cygwin, the working path have to be /cygdrive..
 // the below preg_replace have to be done only using binary php complied on MSVC.
 // let's find if php was complied by cygwin:
-ob_start();
-phpinfo(1);
-$tmp = ob_get_contents();
-ob_end_clean();
-$cygwin_complied = eregi("CYGWIN",$tmp) ? true : false;
+$cygwin_complied = eregi("CYGWIN",php_uname()) ? true : false;

 // The output directory, which we need to parse for windows specific
 // things, and correct all problems is needed.
 // Also use absolute path to have meaningful error messages
-$out_dir = abs_path(preg_replace("!^/cygdrive/(\\w)/!", "\\1:/", "@WORKDIR@"));
+$out_dir = abs_path(strip_cygdrive("@WORKDIR@"));
 
 // this path if used for saving the ent file:
 $script_out_dir = $cygwin_complied ? "@WORKDIR@" : $out_dir;
@@ -370,7 +365,16 @@
 // notation before the file name
 // !! BUT it's not honored by xsltproc so uncomment it for now !!
 // if ($xsl_sheet_used) { $filename = "file:///" . $filename; }
-return sprintf("\n", $entname, $filename);
+return sprintf("\n", $entname, 
strip_cygdrive($filename));
 }
+}
+
+/**
+ * Return windows style path for cygwin.
+ * 
+ * @param string $path Orginal path
+ */
+function strip_cygdrive($path){
+   return preg_replace("!^/cygdrive/(\\w)/!", "\\1:/", $path);
 }
 ?>



-- 
PHP Documentation Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP-DOC] #22635 [Com]: 1.1.1970 <> 24 hours in [gm]mktime

2003-03-19 Thread jsteeen at timecom dot com
 ID:   22635
 Comment by:   jsteeen at timecom dot com
 Reported By:  jsteen at timecom dot com
 Status:   Analyzed
 Bug Type: Documentation problem
 Operating System: win32
 PHP Version:  4.3.1
 New Comment:

yes. please. add a comment to the online doc about the win bugs to both
mktime and gmmktime.


Previous Comments:


[2003-03-17 09:42:36] [EMAIL PROTECTED]

This is not bug in PHP, but in Windows.
We should mention this on the manual.




[2003-03-17 08:52:33] jsteen at timecom dot com

michael:
"on systems where time_t is a 32bit signed integer, as most common
today, the valid range for year is somewhere between 1902 and 2037"

to my understanding, that includes 1970, in the valid range, or not?
[1902<1970<2037] 


andrew:
it seems your post is incomplete, so if you could complete, it, it
might be of some help. 

then: i basically agree, but: this is a bug-db. the first thing we can
do for the developers AND the community, is to report and document bugs
properly. if a bug then gets marked as 'bogus', it will be ignored, i
ensure you! so: 
maybe it's not as much as to 'get rid' of open bug-reports, but more
about marking them properly if you see one. if there are 'unsolvable'
bugs, i suggest they be marked as such [or as 'cannot be fixed at this
point'] and not as 'bogus'. that would also make it easier for us to
spot where the developers need help and kick in appropriately.

your redirection to mktime only proves that any function dealing with
unix timestamps is completely unreliable on win platforms and should
-hence- not(!) be used. i consider this fact being worth documented
somewhere.
[eg: a db based on timestamps cannot be moved to another OS, since the
stamps would 'shift']



[2003-03-12 15:37:51] [EMAIL PROTECTED]

jsteen at timecom dot com:

If you're pissed that the time functions are so 'buggy' on Win32, then
why don't you step into the ring and help us debug it?  Become part of
the community, but don't drive the community away because you didn't
get an answer you wanted.

Please reopen this bug as you feel necessary, but i'm marking it as a
bogus report due to the fact that it's an imcompatibility between Win32
and *nix systems, and also the fact that we can

I'd finally like to redirect you to
http://www.php.net/manual/en/function.mktime.php so you can read the
user comments.  Apparently different windows systems handle the
timestamp differently.  As said earlier, it's an incompatibility.

~ Andrew Heebner
~ Andrew Heebner



[2003-03-12 12:32:28] michael dot mauch at gmx dot de

Please read the fine manual. From
:

"on systems where time_t is a 32bit signed integer, as most common
today, the valid range for year is somewhere between 1902 and 2037".

If you are using values outside this range, you get undefined
behaviour.



[2003-03-12 03:34:12] jsteen at timecom dot com

WE F...ING KNOW mktime, gmmktime etc. WORK FINE ON *NIX!
THIS IS A WIN REPORT!

[flame: on]
is it a new policy on bugs.php.net to NOT read post
headers/declarations, write "works fine with linux" as answer, and put
the bug on 'BOGUS'?

i'm among the many users that are pissed that all the
timestamp-functions are buggy on win. ok. fine. deal. but then please
take our reports seriously and put a proper comment in the man! i
really begin to wonder whether you're not just too lazy to seriously
deal with it if i get this sorts of answers.
[flame: off]

so why does 1.1.1970 not have 24h?

please omit any of the usual answers, like:
- works fine for linux
- blame MS



The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/22635

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


-- 
PHP Documentation Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP-DOC] cvs: phpdoc /scripts file-entities.php.in

2003-03-19 Thread Moshe Doron
momoWed Mar 19 04:36:49 2003 EDT

  Modified files:  
/phpdoc/scripts file-entities.php.in 
  Log:
  the right fix. i forked the $out_dir into $script_out_dir using for inscript tasks.
  
Index: phpdoc/scripts/file-entities.php.in
diff -u phpdoc/scripts/file-entities.php.in:1.9 
phpdoc/scripts/file-entities.php.in:1.10
--- phpdoc/scripts/file-entities.php.in:1.9 Wed Mar 19 04:14:04 2003
+++ phpdoc/scripts/file-entities.php.in Wed Mar 19 04:36:48 2003
@@ -17,7 +17,7 @@
 # | Gabor Hojtsy <[EMAIL PROTECTED]>  |
 # +--+
 # 
-# $Id: file-entities.php.in,v 1.9 2003/03/19 09:14:04 momo Exp $
+# $Id: file-entities.php.in,v 1.10 2003/03/19 09:36:48 momo Exp $
 */
 
 /**
@@ -50,22 +50,23 @@
 // XSL sheets are used or not (either "yes" or "no")
 $xsl_sheet_used = ("@DOCBOOKXSL_USED@" == "yes" ? TRUE : FALSE);
 
+
 // when php complied on cygwin, the working path have to be /cygdrive..
-// the below preg_replace have to be done only using binary php  complied on MSVC:
+// the below preg_replace have to be done only using binary php complied on MSVC.
+// let's find if php was complied by cygwin:
 ob_start();
 phpinfo(1);
 $tmp = ob_get_contents();
 ob_end_clean();
 $cygwin_complied = eregi("CYGWIN",$tmp) ? true : false;
-
-$ppath = (0&&$cygwin_complied)
-   ? "@WORKDIR@"
-   : preg_replace("!^/cygdrive/(\\w)/!", "\\1:/", "@WORKDIR@");
-
+   
 // The output directory, which we need to parse for windows specific
 // things, and correct all problems is needed.
 // Also use absolute path to have meaningful error messages
-$out_dir = abs_path($ppath);
+$out_dir = abs_path(preg_replace("!^/cygdrive/(\\w)/!", "\\1:/", "@WORKDIR@"));
+
+// this path if used for saving the ent file:
+$script_out_dir = $cygwin_complied ? "@WORKDIR@" : $out_dir;
 
 // The source directory is passed in the 5th argument counting from backwards.
 $srcdir = abs_path("@SRCDIR@");
@@ -84,9 +85,9 @@
 file_entities($orig_dir, $trans_dir, $orig_dir, $entities);
 
 // Open file for appending and write out all entitities
-$fp = fopen("$out_dir/entities/file-entities.ent", "w");
+$fp = fopen("$script_out_dir/entities/file-entities.ent", "w");
 if (!$fp) {
-die("ERROR: Failed to open $out_dir/entities/file-entities.ent for writing\n");
+die("ERROR: Failed to open $script_out_dir/entities/file-entities.ent for 
writing\n");
 }
 
 echo "\ncreating entities/file-entities.ent...\n";



-- 
PHP Documentation Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP-DOC] cvs: phpdoc /scripts file-entities.php.in

2003-03-19 Thread Moshe Doron
momoWed Mar 19 04:14:04 2003 EDT

  Modified files:  
/phpdoc/scripts file-entities.php.in 
  Log:
  revert last commit for now. jade not alwayes complied with cygwin unfortunately ...
  
Index: phpdoc/scripts/file-entities.php.in
diff -u phpdoc/scripts/file-entities.php.in:1.8 phpdoc/scripts/file-entities.php.in:1.9
--- phpdoc/scripts/file-entities.php.in:1.8 Wed Mar 19 03:57:56 2003
+++ phpdoc/scripts/file-entities.php.in Wed Mar 19 04:14:04 2003
@@ -17,7 +17,7 @@
 # | Gabor Hojtsy <[EMAIL PROTECTED]>  |
 # +--+
 # 
-# $Id: file-entities.php.in,v 1.8 2003/03/19 08:57:56 momo Exp $
+# $Id: file-entities.php.in,v 1.9 2003/03/19 09:14:04 momo Exp $
 */
 
 /**
@@ -58,7 +58,7 @@
 ob_end_clean();
 $cygwin_complied = eregi("CYGWIN",$tmp) ? true : false;
 
-$ppath = $cygwin_complied 
+$ppath = (0&&$cygwin_complied)
? "@WORKDIR@"
: preg_replace("!^/cygdrive/(\\w)/!", "\\1:/", "@WORKDIR@");
 



-- 
PHP Documentation Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP-DOC] cvs: phpdoc /scripts file-entities.php.in

2003-03-19 Thread Moshe Doron
momoWed Mar 19 03:57:56 2003 EDT

  Modified files:  
/phpdoc/scripts file-entities.php.in 
  Log:
  fix for cygwin php binary
  
Index: phpdoc/scripts/file-entities.php.in
diff -u phpdoc/scripts/file-entities.php.in:1.7 phpdoc/scripts/file-entities.php.in:1.8
--- phpdoc/scripts/file-entities.php.in:1.7 Thu Dec 26 15:26:00 2002
+++ phpdoc/scripts/file-entities.php.in Wed Mar 19 03:57:56 2003
@@ -17,7 +17,7 @@
 # | Gabor Hojtsy <[EMAIL PROTECTED]>  |
 # +--+
 # 
-# $Id: file-entities.php.in,v 1.7 2002/12/26 20:26:00 goba Exp $
+# $Id: file-entities.php.in,v 1.8 2003/03/19 08:57:56 momo Exp $
 */
 
 /**
@@ -50,10 +50,22 @@
 // XSL sheets are used or not (either "yes" or "no")
 $xsl_sheet_used = ("@DOCBOOKXSL_USED@" == "yes" ? TRUE : FALSE);
 
+// when php complied on cygwin, the working path have to be /cygdrive..
+// the below preg_replace have to be done only using binary php  complied on MSVC:
+ob_start();
+phpinfo(1);
+$tmp = ob_get_contents();
+ob_end_clean();
+$cygwin_complied = eregi("CYGWIN",$tmp) ? true : false;
+
+$ppath = $cygwin_complied 
+   ? "@WORKDIR@"
+   : preg_replace("!^/cygdrive/(\\w)/!", "\\1:/", "@WORKDIR@");
+
 // The output directory, which we need to parse for windows specific
-// things, special cygwin path notation, and correct all problems is
-// needed. Also use absolute path to have meaningful error messages
-$out_dir = abs_path(preg_replace("!^/cygdrive/(\\w)/!", "\\1:/", "@WORKDIR@"));
+// things, and correct all problems is needed.
+// Also use absolute path to have meaningful error messages
+$out_dir = abs_path($ppath);
 
 // The source directory is passed in the 5th argument counting from backwards.
 $srcdir = abs_path("@SRCDIR@");



-- 
PHP Documentation Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php