| |
| |
| |
|
Page: 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
Comments:
<0> Drakas this is a rack.. i've tested the memory 100 times before putting it in the server center <0> i doubt there are memory issues <1> Jax: it also might be some error that has been fixed in a newer version of PHP. <0> let me see if they fixed it in a new version <2> Jax: could be differnt mysql lib version than mysqli is compiled against. <2> recompile php ;) <1> Jax: oh right. Upgrade versions, that might solve the problem <0> 5.1.2 is newest.. hm <1> Jax: gdb`ed yet? <0> no, haven't had time yet <2> Jax: try what i said, ive seen it cause problems more than once. <1> like "gdb php" then write "run your.script.php" and then "info trace" or soemthing <2> someone upgrade the mysql libs on the box <2> and when ld loads them into php or apace (dynamically) <0> well, i recompiled all dependencies of mysqlclient.lib.so iirc <2> things start segfulting weirdly
<0> i have no other problems, just when doing: $mysqli->close(); echo $mysqli->insert_id; <0> -> segfault <2> Jax, php is linked against mysqlclient_r.so, so is it changes (ie: you recompiled it) <0> anyway, i'll find out *sigh* <2> you need to recompile php as well (sometimes) <3> can PHP4.x be configured to set display a generic error message when you turn display_errors Off in php.ini ? <2> MrNaz, see: set_error_handler() <2> alright its nap time for me <3> Jameno123 thanks <4> Hi, This is my code: http://nopaste.php-q.net/202506 and this is my errors: http://nopaste.php-q.net/202505 <4> How would i fix it? Cause the files are there where they should. <1> Factory|David: files are included form the script that is actually being executed. for example, if you have file a.php which includes dir/b.php , b.php wants to include c.php which is in dirrectory "dir", it should ave to do "dir/c.php" instead of "c.php" <5> if I do zip -m zip.zip file.txt and I want to have both fixes m and D what do I do? <5> I tried zip -mD and zip -m zip.zip file.txt -D <5> oh sry.. not linux room <1> when i want to logout from http auth, header("HTTP/1.0 401 Unauthorised"); doesn't do a thing on opera. will check it in ff in a mo <4> Drakas so how would i fix it <1> ? <4> How would i fix my problem? So the script actaully works? <6> Is there a way to clear whole $_SESSION in one line? <1> beruic: unset($_SESSION) maybe <6> I'll try it out... <1> .. if that doesn't work , try array_map($_SESSION,"unset"); or somehting <7> session_destroy <6> session_destroy(); ? <1> yes you can try that too <4> Drakas, how would I make my script work? <1> Factory|David: ? <4> Hi, This is my code: http://nopaste.php-q.net/202506 and this is my errors: http://nopaste.php-q.net/202505 <4> I'm getting errors so it aint working, <1> i don't know <1> i doint work with vbulletin or whatever forums <1> ask in their support <6> session_destroy(); works just fine :) thanks, that saved me a lot of unset lines typing in my logout... <4> Well i've done without success. <0> hm having another problem, say i got 2 Objects (A and B), they each have a private property $mysqli. both cl***es do: $this->mysqli = new DatabaseWrapper("whateverTargetDBserver"); in the constructor, so they got mysqli access. (cl*** DatabaseWrapper extends mysqli, and all it does is: parent::__construct(...) in its constructor). The constructor of A receives a reference to a B as a param, i then store B on A. <8> hmm, how much can i store into an array value ? <0> So the constrctor of A is something like A ( &$B ) { $this->setB($B); } right <0> now as soon as i do that, and use B within A, the destructor of A fails (all it does is $this->mysqli->close();) <0> so somehow, B is messing with the private $mysqli of A <0> any idea why this would be happening? <0> Warning: mysqli::close() function.close: Couldn't fetch DatabaseWrapper in /home/myhome/cl***es/evino/bonus/BonusList.php on line 38 <0> if i don't put B on A, i don't get the warning <0> only if i put the B object, as a reference on A <0> but i'm not sure how they could mess with eachother, because they both have the PRIVATE property $mysqli <9> Jax: you using php4 or 5? <0> and B connects to a different server anyway <0> 5 <10> hi! <9> you don't need & in 5 <0> well i doubt that's the problem though? <0> changed it, no difference <9> yeah, i doubt that's the problem, just pointing it out <11> Maildir: archived 87208 of 91736 message(s) in 55.2 seconds <11> <3 <9> Jax: what do you mean the destructor of A fails? <0> the constructor of A and B are identical: public function __destruct() { $this->mysqli->close(); } <0> if i put B on A, i get the warning above: Warning: mysqli::close() function.close: Couldn't fetch DatabaseWrapper in /home/myhome/cl***es/evino/bonus/BonusList.php on line 38 <0> BonusList.php -> A <0> both A and B have: private $mysqli; <9> Jax: and do both A and B have mysqli set?
<12> how doa icheck if a function is true or false? if ( valid_email($email) == false) <12> does not seem to work... <0> yep, A has this constructor: public function __construct( &$B ) { $this->mysqli = new DatabaseWrapper("shop"); $this->setB($B); } <0> and B has this constructor: public function __construct() { $this->mysqli = new DatabaseWrapper("users"); } <0> and as said, both have private $mysqli infront of the constructor <0> and both have: public function __destruct() { $this->mysqli->close(); } <1> anyone know how to "logout" from http auth? sending 401 doesn't work :s <0> A then has methods with stuff like: $this->getB()->getSomething() etc <9> Jax: try replacing $this->mysqli->close() with echo(get_cl***($this)); and see what happens <12> http://pastebin.com/635672 where is my syntax wrong here? <0> dools in which destructor? <12> my use of a function seems to be bad <0> A or B or both ;) <9> Jax: yeah both i guess <9> Jax: what is DatabaseWrapper(), is that one of your cl***es or a php cl***? <13> hi, how can i load a page with sending POST data and save cookies by PHP page? <0> dools one of my cl***es, i'll put it online for you, it's only a couple lines <0> dools ok i put echo("A ".get_cl***($this)); in destructor of A and the same with B in B.. <0> output is then: B User A BonusList i.e User is B, and BonusList is A <0> so you see B's destructor is called first, then A's <9> you got a pastebin of your database wrapper? <14> Dragnslcr, you can't logout from authentication that uses .htaccess or Apache authentication. <14> Drakas, rather <1> i know about that <1> i've done the php one =P <1> works now :) <14> Then you destroy the session <14> okie =) <1> session?;? <0> dools: http://pastebin.com/635679 <0> that's all it does <0> but maybe the error is there <0> Drakas doesn't this work http://php3.de/manual/en/features.http-auth.php <12> http://pastebin.com/635672 syntax anyone? <9> Jax: hmmm something tells me that because it's saying cannot fetch DatabaseWrapper there is some cl*** weirdness (which i've been experiencing a lot recently, particularly when using functions starting with __) can you try a little test: instead of using DatabaseWrapper cl***, just use mysqli and hard code in the database details to cl***es User and BonusList... just to check if it is something strange going on with extending that cl*** <1> all i did was the same auth except that it was forbidde <1> theres a lot of notes, some showing code with sessions but explaining 0 <15> how can i check how many persons are viewing my site? <0> dools ok, let me try that <1> BigSinep: google <0> ok dools <16> Hey all <16> I run a vBulletin forum <16> I heard there was an exploit for it on 3.5.3 <16> Can somebody clarify? <0> put $this->mysqli = new mysqli(....); in both constructors, and then put $this->mysqli->close(); in both destructors, same thing happens. but it only happens when the the close() is in the destructor of A.. it doesn't matter if B has the close() in the destructor or not.. <16> Anybody? <9> Jax: what is the error it gives? i presume it no longer mentions DatabaseWrapper <15> how can i check if a user left the site (i mean does php notice that somehow? ) <0> Warning: mysqli::close() function.close: Couldn't fetch mysqli in /home/myuser/cl***es/evino/bonus/BonusList.php on line 40 <16> Nobody? <16> I need to see how it works so I can patch up my vBulletin <0> BigSinep, nah usually you put the session id or something in a database, and each time hte person change pages, you update the timestamp.. then you got a boundary timestamp, i.e if the difference between 2 page-views is larger than say 60 seconds, he probly left.. than you can set his/her status to "not online" <0> or something along those lines <16> I can't install the latest version <9> Jax: and that still happens if you remove that call from the destructor of cl*** B? <0> yeah <16> I can't install the latest version! <16> HELP1 <0> i did a print_r($this->mysqli) in A (in the destructor) and it's empty... <16> How does the Cross Site Scripting attack work? <9> Hotwir3d: you generally need to narrow your question down more than that to get help in ##php <16> The vBulletin 3.5.3 exploit <16> How does it work <16> An example <9> Hotwir3d: i mean to a php question, not a question regarding a php product <16> See if im vuln <16> Where do I ask? <9> vBulletin lists i guess <16> Not registered <17> /careface <0> dools i used to p*** the userId directly in to A, instead of the user object => didn't have any problems <9> Jax: that's pretty interesting, so it appears that perhaps it is being removed before __destruct is being called <0> but as soon as i p***ed the object in per reference, getting problems
Return to
#php or Go to some related
logs:
+centos +install ncftpget saramost #gaim gentoo thepanz gobject.io_add_watch server #perl Raymans Bowling #centos #math #mysql
|
|