logs archiveIRC Archive / Freenode / #php / 2006 / June / 7 / 10
jsoft
richardlynch: no, I want faster, but stable. I did mention it was on a PRODUCTION box, and I did mention my distrust of random filesystems, eg, I want something STABLE
cythrawll
function name($arg)
cheatersrealm
ok
cythrawll
er
function name(&$arg)
ampersand means pass by reference
Pollita
C++ style pass-by-ref
As much as that makes me hurl
richardlynch
I'm not SURE, but in PHP 5, are not all objects passed around by reference, no matter what? (Other than calling clone)
cythrawll
so negative
:(
Pollita
richard: True
cythrawll: See! I'm not ENTIRELY negative :)
cheatersrealm
I think that this is php4 so that point is moot
         

cythrawll
dern! i've been had
Pollita
cheater: upgrade
php5.1 for the win
cythrawll
i concur
Jymmm
PHP4EVER
cythrawll
php5ever
cheatersrealm
Pollita: not that simple
out of my control
cythrawll
until 6
Pollita
I know
cythrawll
php6ever
cheatersrealm
zomg php 9 ftw
Stoner
richardlynch: i have been lookin on google but cant seem to find much :(
Pollita
But trust me, if you can MAKE it in your control.... go for the upgrade
You'll be glad you did
mamay
speakinh of php4 is there a way to grep or locate all instances where objects are being passed by value to make it easier to port these to php5
KimmoA1
No plans on a PHP Lite still, eh?
Pollita
KimmoA1: ./configure --diable-all
KimmoA1
:S
Pollita
erm --disable-all
cheatersrealm
yargh
richardlynch
KimmoA1: Lite in what sense, and for what purpose?...
cythrawll
oooh
         

richardlynch
Cuz I'm thinking I'd love to find time to mess with PHPScript...
KimmoA1
Lite as in no OO...
Pollita
fwiw, There will be a PHP-lite come version 6
cythrawll
maybe like perl where there's only 10 functions in the core
Pollita
but not in the "no OO" sense
KimmoA1
What will be "lite" about it?
I really can't stand OO in practice. :/
Pollita
PHP6 is going to bundle ICU (with a "lite" version which doesn't include it)
cheatersrealm
bwsarh
richardlynch
Tons more stuff moved into PECL/PEAR instead of in core, I think...?
Pollita
ICU is a VERY big package
cythrawll
i see you too
Dyn_User9480194
hey
cythrawll
what's ICU?
KimmoA1
Let met know when they make perfectly sound-proof, cube-shaped computer cases.
PeterFA
http://www.irclinux.org/freenode/linux/2006/06/07/pag-24/ <-- for referense... I'm trying to crash this serer :D
Nimmit
is there a way to have php ignore Undefined offset
Pollita
stuff is moving out of core, but stuff is also moving in, so it's a wash there
Nimmit
so it doesn't give the error all the time
on one machine the error is not shown, on another it is
so there must be
Pollita
Nimmit: Yes, exclude E_NOTICE from your error_reporting level, but it'd be better if you wrote cleaner code
Nimmit
where do I do that at
Pollita
php.ini
Nimmit
k
richardlynch
Nimmit: if (isset($array['foo'])) do something with $array['foo'];
Pollita
error_reporting=E_ALL & ~E_NOTICE
Xyphoid
irclinux is still there? i'm surprised nobody's DMCA'd it
KimmoA1
Why do people reply to people who ask "questions" without question-marks?
Pollita
or just:
richardlynch
I personally believe you should NOT turn off E_NOTICE in php.ini -- jmho
Pollita
display_errors=off
cbchui
am i missing some configs ? Invalid command 'php_flag', perhaps mis-spelled or defined by a module not included in the server configuration
linux2
anyone know about this error
mysql_num_rows(): supplied argument is not a valid MySQL result resource in
Pollita
richard: I agree, but he's asking for a specific answer
cythrawll
so what is this ICU buisness?
Pollita
cbchui: That implies that mod_php5 isn't being loaded
richardlynch
True -- But I assume it's a newbie asking a bad question, and prefer to give them the good answer :-)
Pollita
cythrawll: The underlying library which supports unicode charactersets
mamay
error_reporting(~E_NOTICE); in your script do disable notices
cythrawll
oooh
KimmoA1
linux2: So if ANYONE knows about that error, how come you don't?
Pollita
cythrawll: Havn't you been keeping up on the PHP6 development?
KimmoA1
Hmm? Hmm? Didn't think of that, eh? Hmm?
Nimmit
if ($con['buffer']['all'] != $null) {
cythrawll
Pollita i just started
Nimmit
this is a line I have problems with
cbchui
Pollita okay thanks
cythrawll
been keeping more of an eye on what zend is doing with their framework
PeterFA
<h1>Damn it, they convert the symbols over so I can't drop code into their website!!</h1>
Pollita
pfft
fooman
can someone tell me what all i need to do to not allow magic quotes? i turned off magic_quotes_gpc, magic_quotes_runtime, and magic_quotes_sybase
cythrawll
(Action) whipes the pfft off his glasses
richardlynch
Nimmit: If (isset($con['buffer']) && isset($con['buffer']['all']) && $con['buffer']['all'] != $null)
Pollita
fooman: That's it
richardlynch
fooman: And re-start Apache.
Pollita
btw... another spot where PHP6 is "lite".... no magic_quotes, no register_globals, and no safe_mode
fooman
well i did that and i got forkbombed :S
richardlynch
linux2: You can Google for that error message and get an answer.
Pollita
and no ze1_compatability_mode
cythrawll
safe mode will be on or off then
Pollita
(Action) looks up
Train Stop!
ciao
cythrawll
im assuming off, cuz on would break things
Pollita
cythrawll: non-existant (off)
richardlynch
I would also assume "off" for safe-mode -- as it only makes sense in such a limited niche usage in the first place.
cythrawll
namespaces this time?
KimmoA1
FFS...
cbchui
Pollita : nope i didnt keep up. i am still using php 4.
fooman
Pollita, what else would allow the use of magic quotes since i have those disabled?
richardlynch
I suspect that the answer to namespaces will remain (forever): It would only introduce more confusing syntax, and you can just abuse class for it, so no, you don't get namespaces.
fooman: It's possible they get turned "on" In .htaccess... Does phpinfo() tell you they are on?
A-KO
hmm....got another question...how do I add variables to URLs?
anyone got al ink on that?
cythrawll
so they take namespaces away from us cuz we're too stupid and can't do it right?
fooman
richardlynch, nope it says they are all off
richardlynch
A-K0: $link = "http://example.com"; $link .= "?a=" . urlencode($a);
cheatersrealm
A-KO: you can use ?var1=string&var2=132&var3=12354
richardlynch
fooman: So why do you think they are on?
cheatersrealm
but yeah
fooman
richardlynch, my friend showed me he can use them and i got forkbombed
cheatersrealm
is there a php function that tells you the address of a variable?
like the memory address?
A-KO
richardlynch : then echo $link?
richardlynch
fooman: magic quotes and forkbombed are unlikely to have much in common...
A-K0: Yes, echo it would be nice.
fooman
richardlynch, well how do i disable commands being executed using magic quotes?
philip
magic quotes!
richardlynch
cheatersrealm: No... It probably doesn't even have a static memory address the way you thinik of it...
spudse
hello
cheatersrealm
richardlynch: how can I make sure I'm passing by reference correctly?
richardlynch
fooman: You're not making sense, at this point... What commands are getting executed where and how?
spudse
how can I print all variables and arrays in a php script, for debugging?
fooman
ok...
philip
get_defined_vars()
cheatersrealm
richardlynch: nevermind
fooman
richardlynch, he is running a site on my box and her ran a never ending while loop with this inside $buffer = `php4-cgi -f rawr.php`;
richardlynch
spudse: var_dump($GLOBALS); would do ALL of them. var_dump($_GET) for just the GET vars. Also might want to use echo "<pre>"; var_dump($_GET); echo "</pre>" so the layout is nice.
Jymmm
!+gv
stormbot
Global Variables - this will show you everything that php sees: <pre><?php print_r($GLOBALS); ?><hr size=5 noshade><?php var_dump($GLOBALS); ?></pre>
fooman
he*
Xyphoid
fooman: so what, he's showing he can take his own site down?
fooman
Xyphoid, it runs a numerous amounts of processes and makes my box run really slow
richardlynch
fooman: You would need to use http://php.net/escapeshellarg and friends for any data passed into ` and ` are not Magic Quotes,and have nothing to do with Magic Quotes. They are called backticks, and are documented with http://php.net/exec
spudse
richardlynch, doesnt that only print global variables ?
Xyphoid
fooman: delete his site. you'll have a hard time stopping someone you let run scripts on your machine slowing your machine down
gregtampa
hello
richardlynch
spudse: No. $GLOBALS has ALL your vars in it.
Xyphoid
there are steps you can take, but 'don't do that' is a good start
A-KO
richardlynch : what does the . mean in that string?
cythrawll
cocatenation
basically it adds two strings together A-KO
« prev 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 next »