On 2 August 2010 12:05, Gary php-gene...@garydjones.name wrote:
Okay, I'm resurrecting this because I just found something I consider to
be strange in the documentation. Under the -l option at
http://php.net/manual/en/features.commandline.options.php it says
This option won't find fatal
) is what php -l
does, even if I think it's wrong, or at least incorrectly described :)
--
Per Jessen, Zürich (24.2°C)
It feels warmer than that today. Maybe it's because my code isn't
working X(
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
';
| echo 'cheese';
| }
|
| function foo3()
| {
| //$bar = 'cheese';
| echo $bar;
| }
|
| foo1();
| foo2();
| foo3();
|
| ?
`
I only get errors displayed when code happens to pass down the code
path, i.e. at runtime:
,
| /home/jg/work $ php -l lint-test.php
| No syntax errors
. at runtime:
,
| /home/jg/work $ php -l lint-test.php
| No syntax errors detected in lint-test.php
| /home/jg/work $ php lint-test.php
| cheesecheese
| Notice: Undefined variable: bar in
| /home/jg/work/lint-test.php on line 20
|
| Call Stack:
| 1. 61488 1. {main
get errors displayed when code happens to pass down the code
path, i.e. at runtime:
,
| /home/jg/work $ php -l lint-test.php
| No syntax errors detected in lint-test.php
| /home/jg/work $ php lint-test.php
| cheesecheese
| Notice: Undefined variable: bar in
| /home/jg/work/lint-test.php
*does* php -l pick up? I can't find a description
anywhere.
According to the man page for php, the -l flag only checks the syntax, so a
warning wouldn't be displayed, as technically it's not a show-stopper.
Well, I think foo3 is, but yeah, I know what you mean.
Maybe
some sort of unit
want to
find, it isn't an exhaustive list!)
BTW, what problems *does* php -l pick up? I can't find a description
anywhere.
According to the man page for php, the -l flag only checks the syntax, so a
warning wouldn't be displayed, as technically it's not a show-stopper.
Well, I
Gary . wrote:
Yeah. There are static checkers out there, even some FOSS ones. I
guess I'm just a bit frustrated that (as you say) the man page says
that -l checks syntax but doesn't really detail what kind of things
that covers.
It really is _only_ the syntax. Same goes for e.g. the C lint
I think L is 50.
bill
Kurth Bemis wrote:
what does the roman numeral L mean?
can someone point me to a page that has all of the roman numerals and their
English equivlents?
i forgot?
~kurth
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
Yep ...
I unit
V 5
X 10
L 50
C 100
D 500
M 1000
no zero ... try doing maths with this system.
Mick
I think L is 50.
bill
Kurth Bemis wrote:
what does the roman numeral L mean?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For
Hi there. I picked up this function several years ago. See if this can help you
see what the roman value for an arabic number is.
//Calculates the Roman numerals for the given Arabic number.
// Returns '' on error.
function to_roman($num) {
// There is no '0' or negative numbers in Roman
what does the roman numeral L mean?
can someone point me to a page that has all of the roman numerals and their
English equivlents?
i forgot?
~kurth
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL
Try this site
http://www.cod.edu/people/faculty/lawrence/romaindx.htm
-Original Message-
From: Kurth Bemis [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 10, 2001 10:14 AM
To: [EMAIL PROTECTED]
Subject: [PHP] L?
what does the roman numeral L mean?
can someone point me
-Original Message-
From: Kurth Bemis [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 10, 2001 10:14 AM
To: [EMAIL PROTECTED]
Subject: [PHP] L?
what does the roman numeral L mean?
can someone point me to a page that has all of the roman
numerals and their
English equivlents
14 matches
Mail list logo