This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Summary: | I18N - doing php/saas sample - it does not run ok in some asian locales | ||
---|---|---|---|
Product: | php | Reporter: | Ken Frank <kfrank> |
Component: | Project | Assignee: | Tomas Mysik <tmysik> |
Status: | RESOLVED INVALID | ||
Severity: | blocker | CC: | polan |
Priority: | P2 | Keywords: | I18N |
Version: | 6.x | ||
Hardware: | Sun | ||
OS: | All | ||
Issue Type: | DEFECT | Exception Reporter: | |
Attachments: |
php.ini
list of some /opt/coolstack dirs |
Description
Ken Frank
2008-07-22 22:30:10 UTC
>> Fatal error: Class 'HTTP_Request' not found in /opt/coolstack/apache2/htdocs/PhpProject88/org_netbeans_saas/RestConnection.php on line 36 >> >> line 36 of that file has >> $this->req =& new HTTP_Request($this->url); The error is clear - you don't include HTTP_Request class in your PHP script or do not have it on your PHP include path. If you exactly followed the tutorial, the bug is probably there. reopening until can understand more about why closed as its not clear at all. below mentions - The error is clear - you don't include HTTP_Request class in your PHP script or do not have it on your PHP include path. If you exactly followed the tutorial, the bug is probably there. but it is mentioned in script and on include path, and as mentioned in issue, it only happened on some locales (one of them being not a pseudo localized situation) thus if problem happens only in some situations, that does not seem like problem with what is mentioned above. are you saying that there is a bug in tutorial if its followed exactly ? ken.frank@sun.com I will look at the tutorial but probably not now because it will be quite time-consuming (going through the tutorial, investigating why the error could happen). But first - Ken, have you tried the tutorial on the same PC just somehow switching locale? If no, I would say that there's very like bug in your PHP/PEAR setup (as I wrote, the error clearly says that you are missing some file - it would be the same like in Java file with missing import - not related to IDE). But I will investigate more. Marking as INCOMPLETE till the questions are answered. Thanks. as mentioned in issue, am not on pc for this, on solaris 10. Clarified - you have only one PHP environment and you are somehow changing locale in it - I will look at it. Adding Marek to CC, he will look at the tutorial. Thanks a lot. Before I start evaluating this, please confirm that you have php_http extension enabled in all cases. what is php_http extension ? is it mentioned in tutorial or in php docs about setup ? in any case, what are the steps to enable it ? ken.frank@sun.com Sorry, my mistake - it seems that you should have Http_Request enabled through PEAR from the tutorial steps. Could you please attach the output of the following command?: pear list There should be the Http_Request there. We still don't know if you are running this on one machine and one OS, or using different machines and/or OSs for different locales. here's the list from pear list Installed packages, channel pear.php.net: ========================================= Package Version State Archive_Tar 1.3.2 stable Console_Getopt 1.2.3 stable HTTP_Request 1.4.2 stable Net_Socket 1.0.9 stable Net_URL 1.0.15 stable PEAR 1.7.1 stable Structures_Graph 1.0.2 stable as mentioned in this issue, am running on solaris 10 and under the locales mentioned below. ken.frank@sun.com ken.frank@sun.com Ken, could you please attach your php.ini file? The one which is used by Apache server. Thanks. Ken, I went through the tutorial and - it _cannot_ be related to locale changes. Please, provide _exact_ steps to reproduce, otherwise I will close it as INVALID (look at my first comment to find out the reason). Thanks. attached is php.ini file on solaris. the include path has multiple entries since wanted to make sure things were covered. the spelling of PEAR in all caps is correct since that is how it is on solaris. I do need to do this on windows to compare. ken.frank@sun.com Created attachment 66209 [details]
php.ini
on pc its ok, using xamplite pkg even though I don't see any output in the browser, there are no error msgs like on some locales of solaris. I have not added the new code to index.php to display it nicely since pasting it in led to syntax errors, but the original code should work ok since it did on solaris - its just that its not showing anything, or that using 0710 on windows so perhaps that is it. I still need to provide detailed steps on solaris. ken.frank@sun.com Ken, could you please attach output of the following commands? Thanks. ls -l /opt/coolstack/php5/lib/php ls -l /opt/coolstack/php5/bin/pear ls -l /opt/coolstack/php5/lib/php/PEAR ls -l /opt/coolstack/php5/lib/php/HTTP ls -l /opt/coolstack/php5/lib/php/PEAR/HTTP Created attachment 66322 [details]
list of some /opt/coolstack dirs
attached is solaris dir listing of certain php dirs as requested. ken.frank@sun.com Ken, could you please try this code (somewhere in the top of your script): include_once("HTTP/Request.php"); Then try to run it and let me know whether there is some error on not. Thanks. Ken, could you please try this code (somewhere in the top of your script): include_once("HTTP/Request.php"); Then try to run it and let me know whether there is some error on not. Thanks. ==> yes, adding that line, it runs ok in ja locale will remove the incomplete keywd. ken.frank@sun.com > ==> yes, adding that line, it runs ok in ja locale
> will remove the incomplete keywd.
That means that this issue has no relation to NetBeans so my very first comment in this issue was right.
does the line then need to be added to the sample code ? the include once ( ...) statement disucssed below since only when that was included did it work when in other locale. ken.frank@sun.com No idea - you probably have to contact the author of the tutorial. maybe I'm missing something here, but I assume since the bug seems to be about that line being needed ion code, but its not in the tutorial, but yet its marked as invalid - am confused --- is it that the line is really not needed when running in other locales and I was doing something else not correctly ? but if the line is needed, then why is the issue invalid ? This issue is invalid because there's nothing NB could help you with. I guess that: - something wrong is in your PHP setup, or/and - something wrong is in the code of the tutorial? Tomas, I agree with you that it could be either of those 2 reasons. the reason I filed the issue under php category is that I viewed php sample project as a part of php overall - if that is incorrect then can someone on php team let me know under what category this should be filed. But if other things about php sample project would be viewed as being under php category, then I think this one would be also. ken.frank@sun.com What I said in last comment is not correct; I was confusing the php sample project, air alliance, which has its own issue related to i18n under php category, with this one - am sorry. thus my question for this one, is the php/saas sample an official kind of sample for netbeans.org and if so, what category should I change this issue to or is an issue even appropriate for tutorials like this if from netbeans.org ? ken.frank@sun.com Aha, I understand now - I don't think that this tutorial belongs to the PHP component at all - I would guess Web Services? But as I wrote already, I don't know anything about it. You should probably ask Ayub Khan (you mentioned him in your first description). |