From: <php...@li...> - 2010-10-15 09:40:18
|
Hello all. I'm getting this message when ever 'session_start()' runs: /root/wasce/var/log//server.out:PHP Warning: session_start() [<a href='function.session-start'>function.session-start</a>]: open('/root/wasce/var/temp'/sess_9695854ea31bcf9308a4b98d17830eb8, O_RDWR) failed: No such file or directory (2) in /root/wasce/repository/default/claim/1287058146236/claim-1287058146236.war/missing/config.php on line 3 /root/wasce/var/log//server.out:PHP Warning: Unknown: open('/root/wasce/var/temp'/sess_9695854ea31bcf9308a4b98d17830eb8, O_RDWR) failed: No such file or directory (2) in Unknown on line 0 /root/wasce/var/log//server.out:PHP Warning: Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct ('/root/wasce/var/temp') in Unknown on line 0 Path exists, already tried to change to /tmp. File permission is good, since I'm running as root. Tried from different Linux platforms (i386 and s390) using Geronimo and Jetty, always getting result above. My code is pretty simple: <? include_once($_SERVER['DOCUMENT_ROOT']."/java/Java.inc"); session_start(); .. . ?> Can someone advise how to handle PHP standards sessions? Thanks for your time!! -- Garcia -- Garcia |
From: <php...@li...> - 2010-10-15 17:40:29
|
> open('/root/wasce/var/temp'/sess_9695854ea31bcf9308a4b98d17830eb8, O_RDWR) Which version of the PHP/Java Bridge do you use? |
From: <php...@li...> - 2010-10-15 18:47:10
|
Hi, php-java-bridge_6.2.1rc5 tested in PHP 5.2.6 and 5.2.14 Thanks! On Fri, Oct 15, 2010 at 2:40 PM, < php...@li...> wrote: > > open('/root/wasce/var/temp'/sess_9695854ea31bcf9308a4b98d17830eb8, > O_RDWR) > > Which version of the PHP/Java Bridge do you use? > > > ------------------------------------------------------------------------------ > Download new Adobe(R) Flash(R) Builder(TM) 4 > The new Adobe(R) Flex(R) 4 and Flash(R) Builder(TM) 4 (formerly > Flex(R) Builder(TM)) enable the development of rich applications that run > across multiple browsers and platforms. Download your free trials today! > http://p.sf.net/sfu/adobe-dev2dev > _______________________________________________ > php-java-bridge-users mailing list > php...@li... > https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users > -- Garcia |
From: <php...@li...> - 2010-10-17 10:50:57
|
Hi, the argument appears to be quoted. The FastCGIServlet starts a FastCGI process pool through the operating system's /bin/sh, so I think we should find the bug there. What version of /bin/sh do you use, what does the following script: #!/bin/sh echo "$*" echo "$@" ./test.sh 'arg 1' arg2 3 | od -c display? Regards, Jost Bökemeier |
From: <php...@li...> - 2010-10-17 12:05:07
|
Here: ./test.sh 'arg 1' arg2 3 | od -c 0000000 a r g 1 a r g 2 3 \n a r g 0000020 1 a r g 2 3 \n 0000032 On Sun, Oct 17, 2010 at 8:50 AM, < php...@li...> wrote: > Hi, > > the argument appears to be quoted. > > The FastCGIServlet starts a FastCGI process pool through the operating > system's /bin/sh, so I think we should find the bug there. > > What version of /bin/sh do you use, what does the following script: > #!/bin/sh > > echo "$*" > echo "$@" > > ./test.sh 'arg 1' arg2 3 | od -c > > display? > > > > Regards, > Jost Bökemeier > > > ------------------------------------------------------------------------------ > Download new Adobe(R) Flash(R) Builder(TM) 4 > The new Adobe(R) Flex(R) 4 and Flash(R) Builder(TM) 4 (formerly > Flex(R) Builder(TM)) enable the development of rich applications that run > across multiple browsers and platforms. Download your free trials today! > http://p.sf.net/sfu/adobe-dev2dev > _______________________________________________ > php-java-bridge-users mailing list > php...@li... > https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users > -- Garcia |
From: <php...@li...> - 2010-10-17 13:21:02
|
Confirmed. There is a bug in 6.2.1rc5 version. Worked fine with 5.5.4.1 version.\ Cheers. On Sun, Oct 17, 2010 at 10:04 AM, Garcia JR <gar...@gm...> wrote: > Here: > > ./test.sh 'arg 1' arg2 3 | od -c > 0000000 a r g 1 a r g 2 3 \n a r g > 0000020 1 a r g 2 3 \n > 0000032 > > > > On Sun, Oct 17, 2010 at 8:50 AM, < > php...@li...> wrote: > >> Hi, >> >> the argument appears to be quoted. >> >> The FastCGIServlet starts a FastCGI process pool through the operating >> system's /bin/sh, so I think we should find the bug there. >> >> What version of /bin/sh do you use, what does the following script: >> #!/bin/sh >> >> echo "$*" >> echo "$@" >> >> ./test.sh 'arg 1' arg2 3 | od -c >> >> display? >> >> >> >> Regards, >> Jost Bökemeier >> >> >> ------------------------------------------------------------------------------ >> Download new Adobe(R) Flash(R) Builder(TM) 4 >> The new Adobe(R) Flex(R) 4 and Flash(R) Builder(TM) 4 (formerly >> Flex(R) Builder(TM)) enable the development of rich applications that run >> across multiple browsers and platforms. Download your free trials today! >> http://p.sf.net/sfu/adobe-dev2dev >> _______________________________________________ >> php-java-bridge-users mailing list >> php...@li... >> https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users >> > > > > -- > Garcia > -- Garcia |
From: <php...@li...> - 2010-10-17 14:10:30
|
Then we have to look at PHP. What does php -n -d 'session.save_path='\''/tmp'\''' -i |fgrep session.save_path display on your system? |
From: <php...@li...> - 2010-10-17 14:19:42
|
I already took a look on it. Infact, I'm using WebSphere CE (Geronimo) and it has a setting that override 'sesion.path' statement. session.path is fine, there is a bug in javabridge 6.1.5rc5 On Sun, Oct 17, 2010 at 12:10 PM, < php...@li...> wrote: > Then we have to look at PHP. > > What does > > php -n -d 'session.save_path='\''/tmp'\''' -i |fgrep session.save_path > > display on your system? > > > ------------------------------------------------------------------------------ > Download new Adobe(R) Flash(R) Builder(TM) 4 > The new Adobe(R) Flex(R) 4 and Flash(R) Builder(TM) 4 (formerly > Flex(R) Builder(TM)) enable the development of rich applications that run > across multiple browsers and platforms. Download your free trials today! > http://p.sf.net/sfu/adobe-dev2dev > _______________________________________________ > php-java-bridge-users mailing list > php...@li... > https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users > -- Garcia |
From: <php...@li...> - 2010-10-17 16:35:27
|
> Infact, I'm using WebSphere CE (Geronimo) and it has a setting that override > 'sesion.path' statement. Since I cannot reproduce it, I can't fix it. What does php -n -d 'session.save_path='\''/tmp'\''' -i |fgrep session.save_path display on your system? |
From: <php...@li...> - 2010-10-17 16:56:18
|
Oh Sorry about it. sovm105:~# php -n -d 'session.save_path='\''/tmp'\''' -i |fgrep session.save_path session.save_path => '/tmp' => '/tmp' If you need something else please let me know. On Sun, Oct 17, 2010 at 2:35 PM, < php...@li...> wrote: > > Infact, I'm using WebSphere CE (Geronimo) and it has a setting that > override > > 'sesion.path' statement. > > Since I cannot reproduce it, I can't fix it. > > What does > > php -n -d 'session.save_path='\''/tmp'\''' -i |fgrep session.save_path > > display on your system? > > > ------------------------------------------------------------------------------ > Download new Adobe(R) Flash(R) Builder(TM) 4 > The new Adobe(R) Flex(R) 4 and Flash(R) Builder(TM) 4 (formerly > Flex(R) Builder(TM)) enable the development of rich applications that run > across multiple browsers and platforms. Download your free trials today! > http://p.sf.net/sfu/adobe-dev2dev > _______________________________________________ > php-java-bridge-users mailing list > php...@li... > https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users > -- Garcia |
From: <php...@li...> - 2010-10-17 17:13:00
|
Hi, then you've found a PHP bug, I think. [jostb@localhost ~]$ php -n -d 'session.save_path='\''/tmp'\''' -i |fgrep session.save_path session.save_path => /tmp => /tmp Regards, Jost Bökemeier |
From: <php...@li...> - 2010-10-17 17:46:19
|
Thanks for your inputs. That's weird. It's hapenning in two different PHP versions, two different Linux distribution and two different platforms (Intel and OS390-zLinux). Any clue why 5.5.4.1 works in the same circumstances? On Sun, Oct 17, 2010 at 3:12 PM, < php...@li...> wrote: > Hi, > > then you've found a PHP bug, I think. > > [jostb@localhost ~]$ php -n -d 'session.save_path='\''/tmp'\''' -i > |fgrep session.save_path > session.save_path => /tmp => /tmp > > > > Regards, > Jost Bökemeier > > > ------------------------------------------------------------------------------ > Download new Adobe(R) Flash(R) Builder(TM) 4 > The new Adobe(R) Flex(R) 4 and Flash(R) Builder(TM) 4 (formerly > Flex(R) Builder(TM)) enable the development of rich applications that run > across multiple browsers and platforms. Download your free trials today! > http://p.sf.net/sfu/adobe-dev2dev > _______________________________________________ > php-java-bridge-users mailing list > php...@li... > https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users > -- Garcia |
From: <php...@li...> - 2010-10-18 18:38:29
|
> Any clue why 5.5.4.1 works in the same circumstances? The new code has been introduced in version 5.5.4 to prevent PHP from interpreting paths which contain special characters. Windows sometimes uses short paths which contain unusual characters. Since PHP/Java Bridge version 6.x we use it on Unix, too. > That's weird. It's hapenning in two different PHP versions, two different > Linux distribution and two different platforms (Intel and OS390-zLinux). I am sorry if this causes problems. But these issues appear as part of the "normal" PHP development process: It's a PHP problem, not a PHP/Java Bridge problem. It might be possible to work around this bug, I think we check the PHP version during startup. Regards, Jost Bökemeier |
From: <php...@li...> - 2010-10-31 15:16:50
|
> It might be possible to work around this bug, I think we check the PHP > version during startup. Fixed in PHP/Java Bridge 6.2.1, which has been released today. Regards, Jost Bökemeier |