php-windows Digest 17 Sep 2003 19:34:10 -0000 Issue 1914

Topics (messages 21402 through 21407):

Re: globals on globals off (ACK!!)
        21402 by: toby z

Problem in Win32api.c
        21403 by: Fabian Cenedese
        21405 by: Stefan Martin

PHP, CGI error please help
        21404 by: nabil

SSL Handshake and PHP
        21406 by: Dave Fazio

I need help with fopen()
        21407 by: Rob Hermann

Administrivia:

To subscribe to the digest, e-mail:
        [EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
        [EMAIL PROTECTED]

To post to the list, e-mail:
        [EMAIL PROTECTED]


----------------------------------------------------------------------
--- Begin Message ---
hay frank

no swet pal .....

change php.ini recomended to just php.ini
like im sure u must have had for windows
or did u ????

anyways once u have opened up php.ini
search for register globals (ctrl+f)

u will see :
register globals off

just put on in the place of off


:)

hope this works it out fo u .....

good luck

toby

 --- Frank Tudor <[EMAIL PROTECTED]> wrote: > This is more for a
linux group post but I know someone can
> provide enlightenment on this issue.
> 
> I have the latest version of apache and php I have created my
> entire sie in a foxserv environment on windows but my production
> environment is on mandrake linux 9.1
> 
> The globals are set to off but i'll be damned if I know where I
> can set them to on.
> 
> I found a php.ini-dist and a php.ini-recommended file but
> changing these files does nothing.
> 
> can someone give me some give me a hand with this?
> 
> Thanks,
> Frank
> 
> __________________________________
> Do you Yahoo!?
> Yahoo! SiteBuilder - Free, easy-to-use web site design software
> http://sitebuilder.yahoo.com
> 
> -- 
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>  

________________________________________________________________________
Want to chat instantly with your online friends?  Get the FREE Yahoo!
Messenger http://mail.messenger.yahoo.co.uk

--- End Message ---
--- Begin Message ---
Hi

I try to register and call some functions of my own dll. After working (and
failing) with PHP 4.3.3 I tried the new PHP 5.0.0b1. I was suprised to see
that it didn't work much better, some errors still remain.

In (win32, invokefunction) following variables are declared:
        void *w32api_return_buffer = NULL;
        int w32api_return_buffer_size = 0;
        zval **func_arguments = NULL;

func_arguments gets later filled with
                if(zend_get_parameters_array_ex(argc, &func_arguments) == FAILURE)

But this only works if there are not more than one arguments. If there are two or more
the values get filled in w32api_return_buffer_size (second) and w32api_return_buffer
(third) etc...
I hardly believe that this was the intention. I temporarily fixed it by declaring
func_arguments as array like func_arguments[10] so it will work for up to ten
arguments, but I guess the right solution should be better than that.


In PHP4 was an error where it always crashed in zend_hash_find when I tried to
register more than 6 functions. This seems to be solved in PHP5 now.



On the other hand I got a new problem in PHP5 that wasn't there in PHP4.
In zend_std_get_method there's a variable
        zend_function *fbc;

being filled later with
        if (zend_hash_find(&zobj->ce->function_table, lc_method_name, method_len+1, 
(void **)&fbc) == FAILURE) {

Then comes a check for access rights:
        if (fbc->op_array.fn_flags & ZEND_ACC_PUBLIC) {

The problem now is that these flags (and many more members of op_array) are
bogus like 0xcccccccc. If I fill in by hand the value for ZEND_ACC_PUBLIC (0x100)
then it works.
I then tried to find out how I could tell from the beginning, what rights a function 
has.
The registerfunction in Win32api.c has a second argument 'flags' which is nowhere
explained. I just tried and filled in the 0x100 but to no avail. So:
1. What is this second argument 'flags' in registerfunction for?
2. How can I register a function with public access rights? (Do I even have to?)



And to round it up I always get errors in the end for zend_hash_destroy. Looks like
there are some problems with the memory handling.


I hope this info is useful for some developers to fix it.

F. Cenedese
INDEL AG

--- End Message ---
--- Begin Message ---
Hi Fabian,

> In (win32, invokefunction) following variables are declared:
> void *w32api_return_buffer = NULL;
> int w32api_return_buffer_size = 0;
> zval **func_arguments = NULL;
>
> func_arguments gets later filled with
> if(zend_get_parameters_array_ex(argc, &func_arguments) == FAILURE)

> But this only works if there are not more than one arguments.
> If there are two or more the values get filled in
> w32api_return_buffer_size (second) and w32api_return_buffer (third) etc...
> I hardly believe that this was the intention. I temporarily fixed it by
> declaring func_arguments as array like func_arguments[10] so it will work
> for up to ten arguments, but I guess the right solution should be better
> than that.

I run into same problem and allocated the memory dynamically according the
number of given parameters. This acutally solved the problem. I commented on
this bug (see http://bugs.php.net/bug.php?id=25235), but there was no
response.

But there are more problems. If you look at the function
php_w32api_complex_marshall_zval_to_c(), you will see that the relevant part
is commented out. So the handling of complex types simply doesnt work.
I really wonder whether the extension is still being actively developed.

Best Regards
Stefan

--- End Message ---
--- Begin Message ---
I m going to tear my hair off, I can not solve the problem..

The specified CGI application misbehaved by not returning a complete set of
HTTP headers
in php.ini
cgi.rfc2616_headers = 1
cgi.force_redirect = 0

what should I do next ?

--- End Message ---
--- Begin Message ---
Does anyone know the steps is takes to perform an SSL handshake, mainly in
PHP.

I need to establish an SSL connection with an external server, and it is my
understanding that during the SSL handshake, a cypher is decided on and
public keys are exchanged. But I don't know how to implement.

Help!

--- End Message ---
--- Begin Message ---
$profilename="f:/inetpub/wwwroot/PHP_HeadHunterWebSite/HeadHunter/".$FIRSTNA
ME."_".$LASTNAME."_MemberProfile.html";

OR


$profilename="f:\inetpub\wwwroot\PHP_HeadHunterWebSite/HeadHunter\".$FIRSTNA
ME."_".$LASTNAME."_MemberProfile.html";

 @unlink($profilename);

  $htmlfile=fopen($profilename,"w");

I'm woirkign on a windows2000 server   php 4.3.1

I've check all my permissions .. they are fine .. any other suggestions




Warning:
fopen(f:/inetpub/wwwroot/PHP_HeadHunterWebSite/HeadHunter/test_test_MemberPr
ofile.html) [function.fopen]: failed to create stream: Permission denied in
f:\inetpub\wwwroot\PHP_HeadHunterWebSite\HeadHunter\creatememberprofile_crea
teit.php on line 31

--- End Message ---

Reply via email to