[PHP-DEV] Zend resocurces lists and allocating memory
Hi all ;) Does zend calculate the exact memory size of a inserted resource? I have a resource that after inserting does allocate some more memory, but zend seems to free it just after my function has ended. The effect is that my resource has a memory pointer that points to some arbitrary data ;( I mean this statement does deallocates what I need: zend_ptr_stack_clear_multiple(TSRMLS_C); Do I have to delete my resource from the zend's list and then insert it again??? How do I solve this? :) Any help will be appreciated :) -- Krzysztof Jarecki IT Project Manager IPRO http://www.ipro.pl/ -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] Re: Zend resocurces lists and allocating memory
This only occours to me when I am running the debug version But maybe without the debug option it runs accidentally... I am confused ;( -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP-DEV] Bug #14768 Updated: Upgrade to 4.1.0 breaks database connection
Hi Markus ;) Is there a problem with mysql_pconnect() in 4.1.0? Sorry for asking, but I can now only access my email from time to time and there's lots to read here. ID: 14768 Updated by: mfischer Reported By: [EMAIL PROTECTED] Old Status: Open Status: Feedback Bug Type: MySQL related Operating System: Windows XP PHP Version: 4.1.0 New Comment: Are you using mysql_pconnect() Previous Comments: [2001-12-30 07:03:37] [EMAIL PROTECTED] Just to clarify - I'm using the standard Win32 binaries as downloadable from the php.net site. [2001-12-30 07:00:22] [EMAIL PROTECTED] Today I upgraded PHP on my WinXP system from 4.0.6 to 4.1.0 as I was finding 4.0.6 slow and thought 4.1.0 may help. After the upgrade, all MySQL connectivity was broken - none of my scripts installed could connect. MySQL was running fine (and winmysqladmin from the mysql\bin directory was able to connect fine). Restarting MySQL and IIS did not help. I was able to downgrade back to 4.0.6 (from the backup directory created during install), which immediately fixed the problem. Edit this bug report at http://bugs.php.net/?id=14768edit=1 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] Re: Bug #14442 Updated: Segmentation fault when using xslt_process()
Hi ;) How can I check whether Apache is running its included expat-lite or the system one on windows? Is there something like phpinfo() in Apache? :) Sorry for that kinda lame question ;) Thanks for any help Chris Jarecki -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] Re: Bug #14442 Updated: Segmentation fault when using xslt_process()
I have already handled this problem ;) Thanks :) -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] Re: Bug #14442: Segmentation fault when using xslt_process()
Hi ;) Look into the manual. The synopsis for the function is wrong, but the examples show how to do this. When I ran Your function it really did crash... But it's not surprising me now. Check this out: ?php $xh = xslt_create(); $xsl = fopen(/web/xdom.pl/xslt/xprohomepage/homepage.xsl, r); $xml = fopen(test.xml, r); $xslc = fread($xsl, filesize(/web/xdom.pl/xslt/xprohomepage/homepage.xsl)); $xmlc = fread($xml, filesize(test.xml)); /* This could be like this, when You want it straigh from the files echo xslt_process($xh, '/web/xdom.pl/classes/test.xml', '/web/xdom.pl/xslt/xprohomepage/homepage.xsl'); */ /* Use this one if You want it variable based */ echo xslt_process($xh, 'arg:/_xml', 'arg:/_xsl', NULL, array('/_xml' = $xmlc, '/_xsl' = $xslc)); xslt_free($xh); ? Greets ;) -- Chris Jarecki IT Project Manager Ipro http://www.ipro.pl/ -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP-DEV] Re: Bug #14442: Segmentation fault when using xslt_process()
I'm funny? :) why do you think so? I'm using php 4.1.0 and i have downloaded the latest chm manual, which\ was compiled yesterday. It's all on windows 2000 pro. sending You the files would be kinda hard, because the stylesheets are including some other files and this would be a hell of an email ;) I can send You the XML... I cannot give You a backtrace of this... I'm running a non-debug symbols version and it's pretty hard, to get a backtrace on windows without it but maybe You know a simple way?:) Chris Look into the manual. The synopsis for the function is wrong, but the examples show how to do this. When I ran Your function it really did crash... But it's not surprising me now. Your funny. Can you please give a backtrace -- along with the contents of the files. -Sterling -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] Compiling 4.1.0 under windows
Hi everyone ;) When I'm compiling the release downloaded from www.php.net/downloads.php I get the following errors in MSVC6: Configuration: php4dll - Win32 Release Linking... Creating library ..\Release/php4nts.lib and object ..\Release/php4nts.exp LINK : warning LNK4049: locally defined symbol _pcre_free imported LINK : warning LNK4049: locally defined symbol _pcre_malloc imported fopen_wrappers.obj : error LNK2001: unresolved external symbol __imp__virtual_chdir_file main.obj : error LNK2001: unresolved external symbol __imp__virtual_chdir_file fopen_wrappers.obj : error LNK2001: unresolved external symbol __imp__virtual_file_ex SAPI.obj : error LNK2001: unresolved external symbol __imp__tsrm_win32_startup SAPI.obj : error LNK2001: unresolved external symbol __imp__tsrm_win32_shutdown exec.obj : error LNK2001: unresolved external symbol __imp__popen file.obj : error LNK2001: unresolved external symbol __imp__popen mail.obj : error LNK2001: unresolved external symbol __imp__popen exec.obj : error LNK2001: unresolved external symbol __imp__pclose file.obj : error LNK2001: unresolved external symbol __imp__pclose mail.obj : error LNK2001: unresolved external symbol __imp__pclose ..\Release\php4nts.dll : fatal error LNK1120: 6 unresolved externals Error executing link.exe. php.exe - 12 error(s), 2 warning(s) I have opened the php4.dsw workspace and set php4 - win32 Release as the active configuration. What's wrong?:) Everything else compiled without any errors and warnings. I mean TSRM, Zend and even the libmysql project. Did somebody tried compiling it already? I am afraid now to try to compile it as an apache module ;) Greets and thanks for any feedback ;) -- Chris Jarecki IT Project Manager Ipro http://www.ipro.pl/ -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] Re: Compiling 4.1.0 under windows
I managed to compile php.exe from the php4ts.dsw workspace It gave me some warnings, but it have linked succesfully. I am wondering now what it does this ts stands for? Also on the available project list some projects have release_ts suffix or release_ts_inline... -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] Compiling php4apache.dll
Hi everybody ;) I am stuck :( I have downloaded the source for apache-1.3.22 and it compiled fine for windows. I have set the Lib directory in MSVC6 to apache/src/Release and I have also added the following include directories: apache/src/include and apache/src/os/win32 Then I have opened the php4ts.dsw workspace, set the active configuration to php4apache - Win32 Release_TS F7... and this showed up to me: Configuration: php4apache - Win32 Release_TS Linking... Creating library ..\..\Release_TS/php4apache.lib and object ..\..\Release_TS/php4apache.exp php_apache.obj : error LNK2001: unresolved external symbol _ap_child_terminate@4 ..\..\Release_TS/php4apache.dll : fatal error LNK1120: 1 unresolved externals Error executing link.exe. php4apache.dll - 2 error(s), 0 warning(s) What that? Apache.exe compiled without any link errors Shall I change something in the makefiles for php? Please help ;) -- Chris Jarecki IT Project Manager Ipro http://www.ipro.pl/ -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] Re: Bug #14340: DOMXML is broken
Yo Deftris! Are you blind or something? The output of print_r is not clear enough? -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP-DEV] Re: Bug #14340: DOMXML is broken
Yo Deftris! Are you blind or something? The output of print_r is not clear enough? Please notice that you are speaking to volunteers here, who devote *their* spare time to deliver you a *free to use* scripting language. Derick Yes of course ;) Sorry for being a bit rude, but such things make me nervous. Maybe I have a bad day, but he had the solution given on a plate. Besides I had the same problem some time ago (when I started to use some CVS version of the domxml.c) and I didn't ask for any help... print_r($docElement) was enough for me. He got it from Marcus and he DIDN'T read it. I know that developers have more important things to do than replying to the same post twice... especially Marcus :) Who is my god for fixing bugs in the domxml lately ;) Whatever ;) I love all volunteers who devote their time to develop PHP ;) I am trying to be one too ;) Greets Chris -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] new DOMXML functionality
Hi ;) I am new to this group as well as to the comunity of PHP developers, so I came to ask for Your advice. I am currently working on a big project in PHP and we are heavily using it's XML capabilities. Unfortunately the object xml model is still in the development phase. This causes that it still lacks some functionality. I came across such a problem with XPath. I needed to address xml nodes in a document that was using namespaces. But the current domxml library lacks the support for that. So I have made an additional function to the domxml library that extends XPath, so now it can handle namespaces in it's queries. My question is: What should I do to make it available to the world? Should I post it here, or maybe create myself a cvs account and try to mess up with the domxml library sources, or email the guys that are taking care of this extension to generously add this functionality to their code? Thanks for help and sorry for a little OT message:) Chris Jarecki, Ipro www.ipro.pl -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]