php-windows Digest 5 May 2012 19:20:29 -0000 Issue 4035

Topics (messages 30854 through 30857):

Session destroy on window close.
        30854 by: Vinay Kannan
        30855 by: Ferenc Kovacs

Re: Need php_imagick.dll for PHP 5.4
        30856 by: Keith Davis
        30857 by: Jan Ehrhardt

Administrivia:

To subscribe to the digest, e-mail:
        php-windows-digest-subscr...@lists.php.net

To unsubscribe from the digest, e-mail:
        php-windows-digest-unsubscr...@lists.php.net

To post to the list, e-mail:
        php-wind...@lists.php.net


----------------------------------------------------------------------
--- Begin Message ---
Hi Guys,

Any idea as to how we can destroy a PHP session on window close and not
only when the user clicks on logout link? There is a chance that the same
application can be used by different users with different
access privileges on the same computers. Right now m entirely depending on
$_SESSION variables to define the access privileges to each user, is this
the best method in terms of security?

Thanks,
Vinay Kannan.

--- End Message ---
--- Begin Message ---
Set the session lifetime to 0
2012.05.05. 11:15, "Vinay Kannan" <viny...@gmail.com> ezt írta:

> Hi Guys,
>
> Any idea as to how we can destroy a PHP session on window close and not
> only when the user clicks on logout link? There is a chance that the same
> application can be used by different users with different
> access privileges on the same computers. Right now m entirely depending on
> $_SESSION variables to define the access privileges to each user, is this
> the best method in terms of security?
>
> Thanks,
> Vinay Kannan.
>

--- End Message ---
--- Begin Message ---
Strange, this guy says he has it working (but apparently with some
relative directory problem):

http://stackoverflow.com/questions/9954764/imagick-php-5-4-extension-doe
s-not-work-with-relative-paths-windows

We will need it to (we can't even move to 5.4 until Wincache is
updated.)

Keith Davis (214) 906-5183


-----Original Message-----
From: Jan Ehrhardt [mailto:php...@ehrhardt.nl]
Sent: Friday, May 04, 2012 4:32 PM
To: php-wind...@lists.php.net
Subject: [PHP-WIN] Re: Need php_imagick.dll for PHP 5.4

James in php.windows (Sat, 14 Apr 2012 10:29:17 -0700):
>I need one more extension for PHP 5.4, Imagick the non-thread safe
>version for IIS.  I tried the one from PHP 5.3, but it doesn't show up
>under phpinfo();

php_imagemagick does not compile anymore under PHP 5.4, so there is
little chance to get it working.

First offending line:

zend_hash_copy(intern->zo.properties, &class_type->default_properties,
        (copy_ctor_func_t) zval_add_ref,(void *) &tmp, sizeof(zval *));

Errors:

pecl\imagick\imagick.c(2377) : error C2039: 'default_properties' : is
not a member of '_zend_class_entry'

Zend\zend.h(462) : see declaration of '_zend_class_entry'
pecl\imagick\imagick.c(2377) : warning C4047: 'function' : 'HashTable *'
differs in levels of indirection from 'copy_ctor_func_t'

pecl\imagick\imagick.c(2377) : warning C4024: 'zend_hash_copy' :
different types for formal and actual parameter 2

pecl\imagick\imagick.c(2377) : warning C4022: 'zend_hash_copy' : pointer
mismatch for actual parameter 4

pecl\imagick\imagick.c(2377) : error C2198: 'zend_hash_copy' : too few
arguments for call

etcetera.

Jan

--
PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit:
http://www.php.net/unsub.php



This message (including any attachments) may contain confidential or otherwise 
privileged information and is intended only for the individual(s) to which it 
is addressed. If you are not the named addressee you should not disseminate, 
distribute or copy this e-mail. Please notify the sender immediately by e-mail 
if you have received this e-mail by mistake and delete this e-mail from your 
system. E-mail transmission cannot be guaranteed to be secured or error-free as 
information could be intercepted, corrupted, lost, destroyed, arrive late or 
incomplete, or contain viruses. The sender therefore does not accept liability 
for any errors or omissions in the contents of this message or that arise as a 
result of e-mail transmission. If verification is required please request a 
hard-copy version from the sender.

www.pridedallas.com


--- End Message ---
--- Begin Message ---
"Keith Davis" in php.windows (Sat, 5 May 2012 09:41:39 -0500):
>Strange, this guy says he has it working (but apparently with some
>relative directory problem):
>
>http://stackoverflow.com/questions/9954764/imagick-php-5-4-extension-does-not-work-with-relative-paths-windows

Apparently, he has got it working. I used the
ImageMagick-6.7.6-8-Q16-windows-dll, only a tiny difference.

I tried to recompile with --disable-zts to see if that was the problem.
No dice. The non thread safe PHP 5.4.2 did not compile php_imagick.dll
either.

As a last resort I tried using the PHP 5.3 version with PHP 5.4. All
compilations from today.

This one works:
http://x32.elijst.nl/phpinfo.php53nts

The PHP 5.4 php.ini is the same, but doesn't show the php_imagick.dll
that I stole from PHP 5.3.12:
http://x32.elijst.nl/phpinfo.php54nts

Loading php-cgi from the command line shows why:
http://x32.elijst.nl/imagick.gif

Jan

--- End Message ---

Reply via email to