php-windows Digest 24 Jul 2013 20:39:31 -0000 Issue 4119

Topics (messages 31064 through 31065):

Re: CLI Crash Bug
        31064 by: Keith Davis

Applying text/string insertion to images using GD, including additional 
formatting like bold, italic, underline etc.
        31065 by: Jacob Kruger

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 ---
Wow. Eric responded to you in like a minute....not like a (6) month(s) like 
most of us. (Sorry, Eric.)
----------------------
View the complete topic at: 
http://forums.iis.net/p/1196789/2055124.aspx/1?Re+WinCache+for+PHP+5+5+
Posted By: DropPhone in Windows Cache Extension for PHP
Subject: Re: WinCache for PHP 5.5 ?
We're just wrapping up our changes for PHP 5.5.  I can commit the files I have 
now.
Thx!
    --E.
------------------------


That is a nasty workaround for sure. Tested your patched version and it works

Keith Davis (214) 906-5183


-----Original Message-----
From: Jan Ehrhardt [mailto:php...@ehrhardt.nl]
Sent: Tuesday, July 23, 2013 12:24 PM
To: php-wind...@lists.php.net
Subject: Re: [PHP-WIN] Re: CLI Crash Bug

Keith Davis in php.windows (Tue, 23 Jul 2013 06:43:06 -0500):
>It's only with:
>wincache.enablecli=1 & opcache.enable_cli=1

OK. And those two do not go along when php is running from th ecommandline. 
They produce errors while closing the script.

There is a nasty workaround: leave PHP before the error occurs.
Take a look at
http://svn.php.net/viewvc/pecl/wincache/trunk/php_wincache.c?view=markup

If you add this line between 1032 and 1033
    if(WCG(enablecli) && !strcmp(sapi_module.name, "cli")) exit(127); PHP will 
exit with errorlevel 127 immediately at the end of php_mshutdown if (1) 
wincache.enablecli=1 and (2) php.exe is run from the commandline.

My current build of PHP 5.5.1 at
https://dl.dropboxusercontent.com/u/8954372/php-5.5.1-nts-Win32-VC11-x86.zip
contains a php_wincache.dll with this patch.

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 ---
Like subject says, am just wondering what's the simplest/easiest way to 
implement something like this?

It's easy enough to apply overlaid graphical text/string renditions to image 
resource objects/files using something like imagettftext() function:
http://php.net/manual/en/function.imagettftext.php

And, only real issue there was figuring out that angle starts off at actual 90 
degrees being applied by using 00, and you are actually applying any additional 
angle values in sort of counter-clockwise direction, so, for example, in order 
to have text angling downwards at roundabout 45 degrees from horizontal - 
actually like 135 degrees from true 0 degrees, you need to apply an angle of 
315 degrees to the imagettftext() function parameter/argument.

Anyway, aside from maybe getting hold of separate .ttf files for the other 
styles of same fonts, do you have any thoughts regarding applying additional 
styling to text to be overlaid on image resources?

TIA

Jacob Kruger
Blind Biker
Skype: BlindZA
'...fate had broken his body, but not his spirit...'

--- End Message ---

Reply via email to