Re: [PHP-DB] segmentation fault
Ron Croonenberg wrote: Hello all, Is there a debugging tool/strategy to find a segmentation fault that occurs in a php script I have ? gdb. http://bugs.php.net/bugs-generating-backtrace.php -- Postgresql & php tutorials http://www.designmagick.com/ -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DB] segmentation fault
Hello all, Is there a debugging tool/strategy to find a segmentation fault that occurs in a php script I have ? thanks, Ron -- = It's is not, it isn't ain't, and it's it's, not its, if you mean it is. If you don't, it's its. Then too, it's hers. It isn't her's. It isn't our's either. It's ours, and likewise yours and theirs. -- Oxford Uni Press = Ron Croonenberg | | Phone: 1 765 658 4761 Lab Instructor & | Fax: 1 765 658 4732 Technology Coordinator| | Department of Computer Science| e-mail: [EMAIL PROTECTED] DePauw University | 275 Julian Science & Math Center | 602 South College Ave.| Greencastle, IN 46135| = http://www.csc.depauw.edu/RonCroonenberg.html = -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DB] Segmentation fault (11) with PHP ODBC
Tommy Apel wrote: > Sebastian Haag wrote: > >> >> Tommy Apel said: >>> Hi I'm having a little problem ondestanding whats going on >>> The problem is that some and only some of my odbc_exec()'s functions >>> while others don't and cause an segmentation fault in apache1/2 >>> My configuration is SuSE 8.1 with Apache2.0.44, PHP4.3.1 --with-iODBC >>> after >>> that i've added FreeTDS 0.61 as ODBC-driver for MS-SQL2K, now this works >>> fine some of the way but not always >>> >>> Exampel: >>> odbc_exec($conn,"select id,name from $user_db.dbo.users"); // Works fine >>> no >>> problem >>> >>> odbc_exec($conn,"select * from $user_db.dbo.users where (id = '$idz')"); >> ^ ^ >> Are you sure you need those parenthesis??? Correction : I've tryed both with and without but the result is the same >> >>> // >>> Does not work and causes seg fault (11) >>> >>> >>> Can anyone maby help me explain this error >>> >>> Regards >>> Tommy >>> >>> -- >>> PHP Database Mailing List (http://www.php.net/) >>> To unsubscribe, visit: http://www.php.net/unsub.php >>> >>> >> >> -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DB] Segmentation fault (11) with PHP ODBC
Sebastian Haag wrote: > > Tommy Apel said: >> Hi I'm having a little problem ondestanding whats going on >> The problem is that some and only some of my odbc_exec()'s functions >> while others don't and cause an segmentation fault in apache1/2 >> My configuration is SuSE 8.1 with Apache2.0.44, PHP4.3.1 --with-iODBC >> after >> that i've added FreeTDS 0.61 as ODBC-driver for MS-SQL2K, now this works >> fine some of the way but not always >> >> Exampel: >> odbc_exec($conn,"select id,name from $user_db.dbo.users"); // Works fine >> no >> problem >> >> odbc_exec($conn,"select * from $user_db.dbo.users where (id = '$idz')"); > ^ ^ > Are you sure you need those parenthesis??? Tommy: Yes they are there to fetch the name of the databare for the currentuser of the system cause they are different from user to user > >> // >> Does not work and causes seg fault (11) >> >> >> Can anyone maby help me explain this error >> >> Regards >> Tommy >> >> -- >> PHP Database Mailing List (http://www.php.net/) >> To unsubscribe, visit: http://www.php.net/unsub.php >> >> > > -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DB] Segmentation fault (11) with PHP ODBC
Tommy Apel said: > Hi I'm having a little problem ondestanding whats going on > The problem is that some and only some of my odbc_exec()'s functions while > others don't and cause an segmentation fault in apache1/2 > My configuration is SuSE 8.1 with Apache2.0.44, PHP4.3.1 --with-iODBC > after > that i've added FreeTDS 0.61 as ODBC-driver for MS-SQL2K, now this works > fine some of the way but not always > > Exampel: > odbc_exec($conn,"select id,name from $user_db.dbo.users"); // Works fine > no > problem > > odbc_exec($conn,"select * from $user_db.dbo.users where (id = '$idz')"); ^ ^ Are you sure you need those parenthesis??? > // > Does not work and causes seg fault (11) > > > Can anyone maby help me explain this error > > Regards > Tommy > > -- > PHP Database Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > -- Once a problem is defined - it is half way solved. (Henry Ford) -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DB] Segmentation fault (11) with PHP ODBC
Hi I'm having a little problem ondestanding whats going on The problem is that some and only some of my odbc_exec()'s functions while others don't and cause an segmentation fault in apache1/2 My configuration is SuSE 8.1 with Apache2.0.44, PHP4.3.1 --with-iODBC after that i've added FreeTDS 0.61 as ODBC-driver for MS-SQL2K, now this works fine some of the way but not always Exampel: odbc_exec($conn,"select id,name from $user_db.dbo.users"); // Works fine no problem odbc_exec($conn,"select * from $user_db.dbo.users where (id = '$idz')"); // Does not work and causes seg fault (11) Can anyone maby help me explain this error Regards Tommy -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DB] Segmentation fault caused by PHP ODBC
Hi I'm having a little problem ondestanding whats going on The problem is that some and only some of my odbc_exec()'s functions while others don't and cause an segmentation fault in apache1/2 My configuration is SuSE 8.1 with Apache2.0.44, PHP4.3.1 --with-iODBC after that i've added FreeTDS 0.61 as ODBC-driver for MS-SQL2K, now this works fine some of the way but not always Exampel: odbc_exec($conn,"select id,name from $user_db.dbo.users"); // Works fine no problem odbc_exec($conn,"select * from $user_db.dbo.users where (id = '$idz')"); // Does not work and causes seg fault (11) Can anyone maby help me explain this error Regards Tommy -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DB] Segmentation fault caused by PHP ODBC
Hi I'm having a little problem ondestanding whats going on The problem is that some and only some of my odbc_exec()'s functions while others don't and cause an segmentation fault in apache1/2 My configuration is SuSE 8.1 with Apache2.0.44, PHP4.3.1 --with-iODBC after that i've added FreeTDS 0.61 as ODBC-driver for MS-SQL2K, now this works fine some of the way but not always Exampel: odbc_exec($conn,"select id,name from $user_db.dbo.users"); // Works fine no problem odbc_exec($conn,"select * from $user_db.dbo.users where (id = '$idz')"); // Does not work and causes seg fault (11) Can anyone maby help me explain this error Regards Tommy -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php