|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2000-11-20 06:17 UTC] jgoulooze at thinktoo dot nl
The documentation says $a= 5; -$a; echo $a; theresult: 4 $a= 5; $a-; echo $a theresult: 4 In reality however both report an error Instead it should be: $a--; --$a; Which makes more sense to me since it is also ++$a and $a++. Is this just the winversion, has it to do with phptriad or is this a mistake in the documentation? Since I probably end up serving the pages on Linux and building it on Wintel it could be quite a problem. Jeroen Goulooze PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Nov 01 06:00:02 2025 UTC |
When the PDF versions come back online (really soon now), this will be fixed with a terrible hack. Which means running the xml files through the following perl script before compiling... #!/usr/bin/perl -pi s/([^!])-{2}([^>])/$1-\ -$2/g; s/\<\</\<\ \</g; s/\>\>/\>\ \>/g;i have just successfully created a TeX manual with a patched version of openjade-1.3 the following patch has been submitted to the openjade project --- openjade-1.3/jade/TeXFOTBuilder.cxx Fri Aug 13 22:28:29 1999 +++ openjade-1.3.hholzgra/jade/TeXFOTBuilder.cxx Tue Oct 9 06:24:59 2001 @@ -1828,6 +1828,7 @@ #endif void TeXFOTBuilder::characters(const Char *s, size_t n) { + static int l=-1; for (; n > 0; n--, s++) { // Since TeX has only 256 characters // by default, two-byte characters @@ -1842,6 +1843,11 @@ // Otherwise, check for special // TeX escapes. switch(*s) { + case '-': + case '<': + case '>': + if(l==*s) os() << "\\-"; + // fallthru default: os() << char(*s); #ifdef OUTLINES @@ -1891,6 +1898,7 @@ break; } } + l=*s; } }